mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Add gitlab ci support
This commit is contained in:
parent
112be80ebd
commit
2284f20207
36 changed files with 247 additions and 64 deletions
|
@ -113,16 +113,16 @@ async function reportVideoAbuse (req: express.Request, res: express.Response) {
|
|||
|
||||
// We send the video abuse to the origin server
|
||||
if (videoInstance.isOwned() === false) {
|
||||
await sendVideoAbuse(reporterAccount.Actor, videoAbuseInstance, videoInstance)
|
||||
await sendVideoAbuse(reporterAccount.Actor, videoAbuseInstance, videoInstance, t)
|
||||
}
|
||||
|
||||
Notifier.Instance.notifyOnNewVideoAbuse(videoAbuseInstance)
|
||||
|
||||
auditLogger.create(reporterAccount.Actor.getIdentifier(), new VideoAbuseAuditView(videoAbuseInstance.toFormattedJSON()))
|
||||
|
||||
return videoAbuseInstance
|
||||
})
|
||||
|
||||
Notifier.Instance.notifyOnNewVideoAbuse(videoAbuse)
|
||||
|
||||
logger.info('Abuse report for video %s created.', videoInstance.name)
|
||||
|
||||
return res.json({ videoAbuse: videoAbuse.toFormattedJSON() }).end()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue