aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2020-12-11 06:53:30 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-12-14 09:34:47 +0100
commitb1771455af7ac0e3cfd1018865cc2bb44e048730 (patch)
tree44076a8ef79130375aa7259bcd9d2ad5fb2edf3d /server/lib
parent8a9e6ee4a863b5d8981095cfb67c57b7ba75b266 (diff)
downloadPeerTube-b1771455af7ac0e3cfd1018865cc2bb44e048730.tar.gz
PeerTube-b1771455af7ac0e3cfd1018865cc2bb44e048730.tar.zst
PeerTube-b1771455af7ac0e3cfd1018865cc2bb44e048730.zip
fix(notifier): notifyModeratorsOfNewAbuse
closes #3445
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/notifier.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/server/lib/notifier.ts b/server/lib/notifier.ts
index 1da81a535..6af7316f0 100644
--- a/server/lib/notifier.ts
+++ b/server/lib/notifier.ts
@@ -482,15 +482,16 @@ class Notifier {
482 return { users: moderators, settingGetter, notificationCreator, emailSender: emailSenderModerators } 482 return { users: moderators, settingGetter, notificationCreator, emailSender: emailSenderModerators }
483 } 483 }
484 484
485 const [ reporterOptions, moderatorsOptions ] = await Promise.all([ 485 const options = await Promise.all([
486 buildReporterOptions(), 486 buildReporterOptions(),
487 buildModeratorsOptions() 487 buildModeratorsOptions()
488 ]) 488 ])
489 489
490 return Promise.all([ 490 return Promise.all(
491 this.notify(reporterOptions), 491 options
492 this.notify(moderatorsOptions) 492 .filter(opt => opt)
493 ]) 493 .map(this.notify)
494 )
494 } 495 }
495 496
496 private async notifyModeratorsOfVideoAutoBlacklist (videoBlacklist: MVideoBlacklistLightVideo) { 497 private async notifyModeratorsOfVideoAutoBlacklist (videoBlacklist: MVideoBlacklistLightVideo) {