diff --git a/website/server/libs/chatReporting/profileReporter.js b/website/server/libs/chatReporting/profileReporter.js index e30f1b8099..3717a9f713 100644 --- a/website/server/libs/chatReporting/profileReporter.js +++ b/website/server/libs/chatReporting/profileReporter.js @@ -111,4 +111,4 @@ export default class ProfileReporter extends ChatReporter { } return flaggedUser; } -} \ No newline at end of file +} diff --git a/website/server/libs/slack.js b/website/server/libs/slack.js index 71dd019217..d7736ec91e 100644 --- a/website/server/libs/slack.js +++ b/website/server/libs/slack.js @@ -183,11 +183,11 @@ function sendProfileFlagNotification ({ }) { const title = 'User Profile Report'; const titleLink = `${BASE_URL}/static/front/#?memberId=${flaggedUser._id}`; - const text = `@${reporter.auth.local.username} (${reporter._id}; language: ${reporter.preferences.language}) flagged @${flaggedUser.auth.local.username}'s profile`; + let text = `@${reporter.auth.local.username} (${reporter._id}; language: ${reporter.preferences.language}) flagged @${flaggedUser.auth.local.username}'s profile`; if (userComment) { text += ` and commented: ${userComment}`; } - const profileData = `Bio: ${flaggedUser.profile.blurb}`; + let profileData = `Bio: ${flaggedUser.profile.blurb}`; if (flaggedUser.profile.imageUrl) { profileData += `\n\nImage URL: ${flaggedUser.profile.imageUrl}`; }