diff options
Diffstat (limited to 'server/controllers/api/videos/abuse.ts')
-rw-r--r-- | server/controllers/api/videos/abuse.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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) { | |||
75 | 75 | ||
76 | await db.sequelize.transaction(async t => { | 76 | await db.sequelize.transaction(async t => { |
77 | const videoAbuseInstance = await db.VideoAbuse.create(abuseToCreate, { transaction: t }) | 77 | const videoAbuseInstance = await db.VideoAbuse.create(abuseToCreate, { transaction: t }) |
78 | videoAbuseInstance.Video = videoInstance | ||
78 | 79 | ||
79 | // We send the video abuse to the origin server | 80 | // We send the video abuse to the origin server |
80 | if (videoInstance.isOwned() === false) { | 81 | if (videoInstance.isOwned() === false) { |