From 8ca56654a176ee8f350d31282c6cac4a59f58499 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Jul 2020 11:58:46 +0200 Subject: Add ability to report comments in front end --- server/models/abuse/abuse.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/models/abuse') diff --git a/server/models/abuse/abuse.ts b/server/models/abuse/abuse.ts index dffd503b3..bd96cf79c 100644 --- a/server/models/abuse/abuse.ts +++ b/server/models/abuse/abuse.ts @@ -140,7 +140,7 @@ export enum ScopeNames { model: VideoModel.unscoped(), include: [ { - attributes: [ 'filename', 'fileUrl' ], + attributes: [ 'filename', 'fileUrl', 'type' ], model: ThumbnailModel }, { @@ -395,6 +395,8 @@ export class AbuseModel extends Model { comment = { id: entity.id, + threadId: entity.getThreadId(), + text: entity.text ?? '', deleted: entity.isDeleted(), -- cgit v1.2.3