adjust word order in mod slack flag message (#10137)

This commit is contained in:
Alys
2018-03-16 04:27:59 +10:00
committed by Matteo Pagliazzi
parent 5ba09c45df
commit b1b1e512f5
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ describe('slack', () => {
expect(IncomingWebhook.prototype.send).to.be.calledOnce; expect(IncomingWebhook.prototype.send).to.be.calledOnce;
expect(IncomingWebhook.prototype.send).to.be.calledWith({ expect(IncomingWebhook.prototype.send).to.be.calledWith({
text: 'flagger (flagger-id) flagged a message (language: flagger-lang)', text: 'flagger (flagger-id; language: flagger-lang) flagged a message',
attachments: [{ attachments: [{
fallback: 'Flag Message', fallback: 'Flag Message',
color: 'danger', color: 'danger',

View File

@@ -32,7 +32,7 @@ function sendFlagNotification ({
let titleLink; let titleLink;
let authorName; let authorName;
let title = `Flag in ${group.name}`; let title = `Flag in ${group.name}`;
let text = `${flagger.profile.name} (${flagger.id}) flagged a message (language: ${flagger.preferences.language})`; let text = `${flagger.profile.name} (${flagger.id}; language: ${flagger.preferences.language}) flagged a message`;
if (userComment) { if (userComment) {
text += ` and commented: ${userComment}`; text += ` and commented: ${userComment}`;