mirror of https://github.com/Chocobozzz/PeerTube
parent
8a9e6ee4a8
commit
b1771455af
|
@ -482,15 +482,16 @@ class Notifier {
|
||||||
return { users: moderators, settingGetter, notificationCreator, emailSender: emailSenderModerators }
|
return { users: moderators, settingGetter, notificationCreator, emailSender: emailSenderModerators }
|
||||||
}
|
}
|
||||||
|
|
||||||
const [ reporterOptions, moderatorsOptions ] = await Promise.all([
|
const options = await Promise.all([
|
||||||
buildReporterOptions(),
|
buildReporterOptions(),
|
||||||
buildModeratorsOptions()
|
buildModeratorsOptions()
|
||||||
])
|
])
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all(
|
||||||
this.notify(reporterOptions),
|
options
|
||||||
this.notify(moderatorsOptions)
|
.filter(opt => opt)
|
||||||
])
|
.map(this.notify)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private async notifyModeratorsOfVideoAutoBlacklist (videoBlacklist: MVideoBlacklistLightVideo) {
|
private async notifyModeratorsOfVideoAutoBlacklist (videoBlacklist: MVideoBlacklistLightVideo) {
|
||||||
|
|
Loading…
Reference in New Issue