ActivityPub-federated video streaming platform using P2P directly in your web browser
Keep scope in notifier
Chocobozzzf98c39529505
diff --git a/server/lib/notifier.ts b/server/lib/notifier.tsindex 6af7316f01..740c274d72 100644--- a/server/lib/notifier.ts+++ b/server/lib/notifier.ts@@ -463,11 +463,11 @@ class Notifier {async function buildReporterOptions () {// Only notify our users- if (abuse.ReporterAccount.isOwned() !== true) return+ if (abuse.ReporterAccount.isOwned() !== true) return undefinedconst reporter = await UserModel.loadByAccountActorId(abuse.ReporterAccount.actorId)// Don't notify my own message- if (reporter.Account.id === message.accountId) return+ if (reporter.Account.id === message.accountId) return undefinedreturn { users: [ reporter ], settingGetter, notificationCreator, emailSender: emailSenderReporter }}@@ -477,7 +477,7 @@ class Notifier {// Don't notify my own messagemoderators = moderators.filter(m => m.Account.id !== message.accountId)- if (moderators.length === 0) return+ if (moderators.length === 0) return undefinedreturn { users: moderators, settingGetter, notificationCreator, emailSender: emailSenderModerators }}@@ -489,8 +489,8 @@ class Notifier {return Promise.all(options- .filter(opt => opt)- .map(this.notify)+ .filter(opt => !!opt)+ .map(opt => this.notify(opt)))}