]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/middlewares/abuses.ts
Fix video block in abuse table
[github/Chocobozzz/PeerTube.git] / server / helpers / middlewares / abuses.ts
index be8c8b449b574f166db2c3926ca64b1f2ec8d01d..659ad8939457d1c11e5a5afd729973a0b2f3845e 100644 (file)
@@ -26,7 +26,7 @@ async function doesVideoAbuseExist (abuseIdArg: number | string, videoUUID: stri
 }
 
 async function doesAbuseExist (abuseId: number | string, res: Response) {
-  const abuse = await AbuseModel.loadById(parseInt(abuseId + '', 10))
+  const abuse = await AbuseModel.loadByIdWithReporter(parseInt(abuseId + '', 10))
 
   if (!abuse) {
     res.status(404)