diff options
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/abuse.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/videos/abuse.ts b/server/controllers/api/videos/abuse.ts index ca70230a2..77808466c 100644 --- a/server/controllers/api/videos/abuse.ts +++ b/server/controllers/api/videos/abuse.ts | |||
@@ -113,16 +113,16 @@ async function reportVideoAbuse (req: express.Request, res: express.Response) { | |||
113 | 113 | ||
114 | // We send the video abuse to the origin server | 114 | // We send the video abuse to the origin server |
115 | if (videoInstance.isOwned() === false) { | 115 | if (videoInstance.isOwned() === false) { |
116 | await sendVideoAbuse(reporterAccount.Actor, videoAbuseInstance, videoInstance) | 116 | await sendVideoAbuse(reporterAccount.Actor, videoAbuseInstance, videoInstance, t) |
117 | } | 117 | } |
118 | 118 | ||
119 | Notifier.Instance.notifyOnNewVideoAbuse(videoAbuseInstance) | ||
120 | |||
121 | auditLogger.create(reporterAccount.Actor.getIdentifier(), new VideoAbuseAuditView(videoAbuseInstance.toFormattedJSON())) | 119 | auditLogger.create(reporterAccount.Actor.getIdentifier(), new VideoAbuseAuditView(videoAbuseInstance.toFormattedJSON())) |
122 | 120 | ||
123 | return videoAbuseInstance | 121 | return videoAbuseInstance |
124 | }) | 122 | }) |
125 | 123 | ||
124 | Notifier.Instance.notifyOnNewVideoAbuse(videoAbuse) | ||
125 | |||
126 | logger.info('Abuse report for video %s created.', videoInstance.name) | 126 | logger.info('Abuse report for video %s created.', videoInstance.name) |
127 | 127 | ||
128 | return res.json({ videoAbuse: videoAbuse.toFormattedJSON() }).end() | 128 | return res.json({ videoAbuse: videoAbuse.toFormattedJSON() }).end() |