X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Faccount%2Fuser-notification.ts;h=2945bf70953656d3926caac95d45d91fb3c73812;hb=310b5219b38427f0c2c7ba57225afdd8f3064380;hp=07db5a2dbea704b12f259160b74f81fc5050b7ff;hpb=811cef146c841ef8530bc812c05dfee77e0f2998;p=github%2FChocobozzz%2FPeerTube.git 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