From 310b5219b38427f0c2c7ba57225afdd8f3064380 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Jul 2020 15:51:46 +0200 Subject: Add new abuses tests --- server/models/account/user-notification.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/models/account') diff --git a/server/models/account/user-notification.ts b/server/models/account/user-notification.ts index 07db5a2db..2945bf709 100644 --- a/server/models/account/user-notification.ts +++ b/server/models/account/user-notification.ts @@ -109,7 +109,7 @@ function buildAccountInclude (required: boolean, withActor = false) { required: true, include: [ { - attributes: [ 'uuid' ], + attributes: [ 'id', 'name', 'uuid' ], model: VideoModel.unscoped(), required: true } @@ -492,6 +492,8 @@ export class UserNotificationModel extends Model { threadId: abuse.VideoCommentAbuse.VideoComment.getThreadId(), video: { + id: abuse.VideoCommentAbuse.VideoComment.Video.id, + name: abuse.VideoCommentAbuse.VideoComment.Video.name, uuid: abuse.VideoCommentAbuse.VideoComment.Video.uuid } } : undefined -- cgit v1.2.3