X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Faccount%2Fuser-notification.ts;h=2945bf70953656d3926caac95d45d91fb3c73812;hb=17aa80ed016bafa3ccb071af3f86054033823284;hp=07db5a2dbea704b12f259160b74f81fc5050b7ff;hpb=d95d15598847c7f020aa056e7e6e0c02d2bbf732;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