Skip to content

Commit

Permalink
Add divider, fix quotation escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
GAsplund committed Sep 7, 2024
1 parent fa91b80 commit f0bd6c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/notifyService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ class SlackWebhookNotifier implements Notifier {
this.language === Language.EN ? post.contentEn : post.contentSv
)
);
console.log(JSON.stringify(content));
const msg =
this.language === Language.EN
? `News published${group ? ` for *${group.prettyName}*` : ''} by *${nick}*`
Expand Down Expand Up @@ -210,11 +209,16 @@ class SlackWebhookNotifier implements Notifier {
}>*`
}
},
{
type: 'divider'
},
...content
]
}
] as MessageAttachment[]
})
.replaceAll(''', "\\'")
.replaceAll('"', '\\"')
});
if (!res.ok)
console.trace(
Expand Down

0 comments on commit f0bd6c5

Please sign in to comment.