diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/emailer.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts index a1212878f..c8398c9e7 100644 --- a/server/lib/emailer.ts +++ b/server/lib/emailer.ts | |||
@@ -138,6 +138,8 @@ class Emailer { | |||
138 | async addVideoUnblacklistReportJob (videoId: number) { | 138 | async addVideoUnblacklistReportJob (videoId: number) { |
139 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoId) | 139 | const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(videoId) |
140 | if (!video) throw new Error('Unknown Video id during Blacklist report.') | 140 | if (!video) throw new Error('Unknown Video id during Blacklist report.') |
141 | // It's not our user | ||
142 | if (video.remote === true) return | ||
141 | 143 | ||
142 | const user = await UserModel.loadById(video.VideoChannel.Account.userId) | 144 | const user = await UserModel.loadById(video.VideoChannel.Account.userId) |
143 | 145 | ||