Skip to content

Commit

Permalink
fix chunking large changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Apr 4, 2024
1 parent 2f17b25 commit 80c7bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/slack/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export function convertToBlocks(

const fullSection = lines.join("\n");

if (line.length > 3000) {
const splitLines = splitCharacterLimit(line, 3000);
if (fullSection.length > 3000) {
const splitLines = splitCharacterLimit(fullSection, 3000);

splitLines.forEach((splitLine) => {
currentMessage.push(createSectionBlock(splitLine));
Expand Down

0 comments on commit 80c7bb1

Please sign in to comment.