From bc4cd85b4319969f25d34009b301045520327f9b Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Wed, 6 Mar 2024 10:38:52 -0500 Subject: [PATCH] Limit subject and email lengths --- src/suspended-tickets-poller/message.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/suspended-tickets-poller/message.mjs b/src/suspended-tickets-poller/message.mjs index f46464a..7da8efa 100644 --- a/src/suspended-tickets-poller/message.mjs +++ b/src/suspended-tickets-poller/message.mjs @@ -10,7 +10,7 @@ export default function msg(ticket) { type: "header", text: { type: "plain_text", - text: ticket.subject, + text: ticket.subject.slice(0, 150), emoji: true, }, }, @@ -19,7 +19,7 @@ export default function msg(ticket) { elements: [ { type: "plain_text", - text: `From: ${ticket.author.email}`, + text: `From: ${ticket.author.email.slice(0, 100)}`, emoji: true, }, ],