mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-24 00:18:23 +03:00
Fix webhook newlines
This commit is contained in:
@@ -70,7 +70,7 @@ export async function postBranding(req: Request, res: Response) {
|
|||||||
"title": userID,
|
"title": userID,
|
||||||
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
||||||
"description": `**User Agent**: ${userAgent}\
|
"description": `**User Agent**: ${userAgent}\
|
||||||
\n\n**Real User Agent**: ${req.headers["user-agent"]}\
|
\n**Real User Agent**: ${req.headers["user-agent"]}\
|
||||||
\n**Video Duration**: ${videoDuration}`,
|
\n**Video Duration**: ${videoDuration}`,
|
||||||
"color": 10813440,
|
"color": 10813440,
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
|
|||||||
@@ -519,7 +519,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise<Res
|
|||||||
"title": userID,
|
"title": userID,
|
||||||
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
||||||
"description": `**User Agent**: ${userAgent}\
|
"description": `**User Agent**: ${userAgent}\
|
||||||
\n\n**Real User Agent**: ${req.headers["user-agent"]}\
|
\n**Real User Agent**: ${req.headers["user-agent"]}\
|
||||||
\n**Video Duration**: ${videoDurationParam}`,
|
\n**Video Duration**: ${videoDurationParam}`,
|
||||||
"color": 10813440,
|
"color": 10813440,
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
|
|||||||
Reference in New Issue
Block a user