aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/abuse.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-29 11:59:29 +0200
committerChocobozzz <me@florianbigard.com>2019-07-29 13:40:39 +0200
commit2284f202070aa2e49156cc52b3b1596a7d5aadec (patch)
tree77aeb00016734667f8ff32a98ea8b4a6ed3ca31e /server/controllers/api/videos/abuse.ts
parent112be80ebdf96ef6a27420c1c6a10097388731a9 (diff)
downloadPeerTube-2284f202070aa2e49156cc52b3b1596a7d5aadec.tar.gz
PeerTube-2284f202070aa2e49156cc52b3b1596a7d5aadec.tar.zst
PeerTube-2284f202070aa2e49156cc52b3b1596a7d5aadec.zip
Add gitlab ci support
Diffstat (limited to 'server/controllers/api/videos/abuse.ts')
-rw-r--r--server/controllers/api/videos/abuse.ts6
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()