summary refs log tree commit diff
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:57:39 +0100
committerCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:57:39 +0100
commit71a7e535110b9cd975e47e7bee29892ba09d415d (patch)
tree1ea9c6938a2bcaf4f65fa8faa95dc899d7104637
parentrefactor: adjust numbers for length limits (diff)
downloadserver-ts-71a7e535110b9cd975e47e7bee29892ba09d415d.tar.xz
refactor: adjust numbers for length limits
-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 9f561b9d..71f61917 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/github.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/github.ts
@@ -252,7 +252,7 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) => .slice(0, 5) // Discord only shows 5 first commits .map( (c: { id: string; url: string; message: string; author: { username: string } }) => - `[\`${c.id.slice(0, 7)}\`](${c.url}) ${c.message.split("\n")[0].length > 50 ? `${c.message.slice(0, 47)}...` : c.message.split("\n")[0]} - ${c.author.username}`, + `[\`${c.id.slice(0, 7)}\`](${c.url}) ${c.message.split("\n")[0].length > 49 ? `${c.message.slice(0, 47)}...` : c.message.split("\n")[0]} - ${c.author.username}`, ) .join("\n"), },