aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/notifier.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/notifier.ts')
-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) {