Corrected recipient email address in reported PM Slack notification - fixes #12256 (#12838)

* Corrected recipient email address in reported PM Slack notification

Corrected the recipient email address in the Slack notification sent to moderators when a user reports their own private message.

* Installed new dependencies

* Removed personal comments

Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
This commit is contained in:
Sophie Lau
2020-12-14 01:15:19 +08:00
committed by GitHub
parent 4bdaa58592
commit f06fefe9c0
4 changed files with 63 additions and 14 deletions

View File

@@ -113,7 +113,7 @@ function sendFlagNotification ({
}
function sendInboxFlagNotification ({
authorEmail,
messageUserEmail,
flagger,
message,
userComment,
@@ -143,7 +143,7 @@ function sendInboxFlagNotification ({
const messageUserFormat = formatUser({
displayName: message.user,
name: message.username,
email: authorEmail,
email: messageUserEmail,
uuid: message.uuid,
});