Skip to content

Commit

Permalink
Limit subject and email lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Mar 6, 2024
1 parent ff34c0a commit bc4cd85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/suspended-tickets-poller/message.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand All @@ -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,
},
],
Expand Down

0 comments on commit bc4cd85

Please sign in to comment.