}
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)
- .json({ error: 'Video abuse not found' })
+ .json({ error: 'Abuse not found' })
return false
}