summary refs log tree commit diff
path: root/src/api/routes
diff options
context:
space:
mode:
authorCyber <cyber.hf18@gmail.com>2025-12-19 07:33:11 +0100
committerGitHub <noreply@github.com>2025-12-19 07:33:11 +0100
commit9816c137cf2b5849fe1035a0d0e480aec256e29e (patch)
tree1485ca73089ae7b92787a5c54a9097abfe171c32 /src/api/routes
parentSend HTTP 401 on token errors (diff)
parentchore: run prettier (diff)
downloadserver-ts-9816c137cf2b5849fe1035a0d0e480aec256e29e.tar.xz
Merge pull request #1445 from CyberL1/refactor/gh-embed-length
Diffstat (limited to 'src/api/routes')
-rw-r--r--src/api/routes/webhooks/#webhook_id/#token/github.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/webhooks/#webhook_id/#token/github.ts b/src/api/routes/webhooks/#webhook_id/#token/github.ts

index 81aa40a9..f3f8235e 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/github.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/github.ts
@@ -95,7 +95,7 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) => req.body.issue.title.length > 150 ? `${req.body.issue.title.slice(0, 147)}...` : req.body.issue.title }`, url: req.body.comment.html_url, - description: req.body.comment.body.length > 150 ? `${req.body.comment.body.slice(0, 497)}...` : req.body.comment.body, + description: req.body.comment.body.length > 501 ? `${req.body.comment.body.slice(0, 497)}...` : req.body.comment.body, }, ]; break; @@ -119,7 +119,7 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) => if (req.body.action === "opened") { discordPayload.embeds[0].color = 15426592; - discordPayload.embeds[0].description = req.body.issue.body.length > 150 ? `${req.body.issue.body.slice(0, 147)}...` : req.body.issue.body; + discordPayload.embeds[0].description = req.body.issue.body.length > 501 ? `${req.body.issue.body.slice(0, 497)}...` : req.body.issue.body; } break; case "member":