From 21e0727a84734cb0c81c1c9bb22a49b13e46fe5f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Nov 2017 17:04:19 +0100 Subject: Federate video abuses --- server/controllers/api/videos/abuse.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/controllers') diff --git a/server/controllers/api/videos/abuse.ts b/server/controllers/api/videos/abuse.ts index d9b4e8772..88b3d538d 100644 --- a/server/controllers/api/videos/abuse.ts +++ b/server/controllers/api/videos/abuse.ts @@ -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) { -- cgit v1.2.3