aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/emailer.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-09 15:54:24 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-10 14:02:41 +0200
commitcfde28bac33c3644e1b6218eb471b675a37def60 (patch)
treeeb648fc358a2face0f14c598c8eec7769e6b0ed5 /server/lib/emailer.ts
parent8ca56654a176ee8f350d31282c6cac4a59f58499 (diff)
downloadPeerTube-cfde28bac33c3644e1b6218eb471b675a37def60.tar.gz
PeerTube-cfde28bac33c3644e1b6218eb471b675a37def60.tar.zst
PeerTube-cfde28bac33c3644e1b6218eb471b675a37def60.zip
Add ability to report account
Diffstat (limited to 'server/lib/emailer.ts')
-rw-r--r--server/lib/emailer.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 5a6f37bb9..d54eab966 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -311,7 +311,8 @@ class Emailer {
311 videoPublishedAt: new Date(video.publishedAt).toLocaleString(), 311 videoPublishedAt: new Date(video.publishedAt).toLocaleString(),
312 videoName: video.name, 312 videoName: video.name,
313 reason: abuse.reason, 313 reason: abuse.reason,
314 videoChannel: video.VideoChannel, 314 videoChannel: abuse.video.channel,
315 reporter,
315 action 316 action
316 } 317 }
317 } 318 }
@@ -330,6 +331,7 @@ class Emailer {
330 commentCreatedAt: new Date(comment.createdAt).toLocaleString(), 331 commentCreatedAt: new Date(comment.createdAt).toLocaleString(),
331 reason: abuse.reason, 332 reason: abuse.reason,
332 flaggedAccount: abuseInstance.FlaggedAccount.getDisplayName(), 333 flaggedAccount: abuseInstance.FlaggedAccount.getDisplayName(),
334 reporter,
333 action 335 action
334 } 336 }
335 } 337 }
@@ -346,6 +348,7 @@ class Emailer {
346 accountDisplayName: account.getDisplayName(), 348 accountDisplayName: account.getDisplayName(),
347 isLocal: account.isOwned(), 349 isLocal: account.isOwned(),
348 reason: abuse.reason, 350 reason: abuse.reason,
351 reporter,
349 action 352 action
350 } 353 }
351 } 354 }