mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
chore: send full message without trimming to the addon event (#8230)
Address https://github.com/Unleash/unleash/pull/8219#discussion_r1772884465
This commit is contained in:
parent
72bdce98de
commit
5ac32b3713
@ -75,7 +75,8 @@ export default class SlackAddon extends Addon {
|
||||
|
||||
const { text: formattedMessage, url: featureLink } =
|
||||
this.msgFormatter.format(event);
|
||||
const text = formattedMessage.substring(0, 3000);
|
||||
const maxLength = 3000;
|
||||
const text = formattedMessage.substring(0, maxLength);
|
||||
const requests = slackChannels.map((channel) => {
|
||||
const body = {
|
||||
username,
|
||||
@ -149,7 +150,7 @@ export default class SlackAddon extends Addon {
|
||||
url,
|
||||
channels: slackChannels,
|
||||
username,
|
||||
message: text,
|
||||
message: `${formattedMessage}${text.length < formattedMessage.length ? ` (trimmed to ${maxLength} characters)` : ''}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user