summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:27:00 +0100
committerCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:27:00 +0100
commitee120fb2e0023f4d004777e10afefd3a624bea1f (patch)
treea0a70ebc124011a313d64c5a22e74f2510050f78 /src
parentSend HTTP 401 on token errors (diff)
downloadserver-ts-ee120fb2e0023f4d004777e10afefd3a624bea1f.tar.xz
fix: description length for `issue` event
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/webhooks/#webhook_id/#token/github.ts2
1 files changed, 1 insertions, 1 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..09a33fbb 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/github.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/github.ts
@@ -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":