aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/abuse
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-09 11:58:46 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-10 14:02:41 +0200
commit8ca56654a176ee8f350d31282c6cac4a59f58499 (patch)
tree6e52ed0d8410abfceb62bcb6230b8ed50bd6c574 /server/models/abuse
parent310b5219b38427f0c2c7ba57225afdd8f3064380 (diff)
downloadPeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.tar.gz
PeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.tar.zst
PeerTube-8ca56654a176ee8f350d31282c6cac4a59f58499.zip
Add ability to report comments in front end
Diffstat (limited to 'server/models/abuse')
-rw-r--r--server/models/abuse/abuse.ts4
1 files changed, 3 insertions, 1 deletions
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 {
140 model: VideoModel.unscoped(), 140 model: VideoModel.unscoped(),
141 include: [ 141 include: [
142 { 142 {
143 attributes: [ 'filename', 'fileUrl' ], 143 attributes: [ 'filename', 'fileUrl', 'type' ],
144 model: ThumbnailModel 144 model: ThumbnailModel
145 }, 145 },
146 { 146 {
@@ -395,6 +395,8 @@ export class AbuseModel extends Model<AbuseModel> {
395 395
396 comment = { 396 comment = {
397 id: entity.id, 397 id: entity.id,
398 threadId: entity.getThreadId(),
399
398 text: entity.text ?? '', 400 text: entity.text ?? '',
399 401
400 deleted: entity.isDeleted(), 402 deleted: entity.isDeleted(),