mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
cleanup
This commit is contained in:
@@ -102,17 +102,13 @@ function sendInboxFlagNotification ({
|
||||
let authorName;
|
||||
let title = `Flag in ${flagger.profile.name}'s Inbox`;
|
||||
let text = `${flagger.profile.name} (${flagger.id}; language: ${flagger.preferences.language}) flagged a PM`;
|
||||
let footer = `<${SLACK_FLAGGING_FOOTER_LINK}?userId=${flagger.id}&chatMessageId=${message.id}|Flag this message>`;
|
||||
let footer = '';
|
||||
|
||||
if (userComment) {
|
||||
text += ` and commented: ${userComment}`;
|
||||
}
|
||||
|
||||
if (!message.user && message.uuid === 'system') {
|
||||
authorName = 'System Message';
|
||||
} else {
|
||||
authorName = `${message.user} - ${authorEmail} - ${message.uuid}`;
|
||||
}
|
||||
authorName = `${message.user} - ${authorEmail} - ${message.uuid}`;
|
||||
|
||||
let messageText = message.text;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user