mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
adjust word order in mod slack flag message (#10137)
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user