1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Federate video abuses

This commit is contained in:
Chocobozzz 2017-11-16 17:04:19 +01:00
parent d7d5611c8a
commit 21e0727a84
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 28 additions and 12 deletions

View file

@ -75,6 +75,7 @@ async function reportVideoAbuse (req: express.Request, res: express.Response) {
await db.sequelize.transaction(async t => {
const videoAbuseInstance = await db.VideoAbuse.create(abuseToCreate, { transaction: t })
videoAbuseInstance.Video = videoInstance
// We send the video abuse to the origin server
if (videoInstance.isOwned() === false) {