diff options
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/user-notification.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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) { | |||
109 | required: true, | 109 | required: true, |
110 | include: [ | 110 | include: [ |
111 | { | 111 | { |
112 | attributes: [ 'uuid' ], | 112 | attributes: [ 'id', 'name', 'uuid' ], |
113 | model: VideoModel.unscoped(), | 113 | model: VideoModel.unscoped(), |
114 | required: true | 114 | required: true |
115 | } | 115 | } |
@@ -492,6 +492,8 @@ export class UserNotificationModel extends Model<UserNotificationModel> { | |||
492 | threadId: abuse.VideoCommentAbuse.VideoComment.getThreadId(), | 492 | threadId: abuse.VideoCommentAbuse.VideoComment.getThreadId(), |
493 | 493 | ||
494 | video: { | 494 | video: { |
495 | id: abuse.VideoCommentAbuse.VideoComment.Video.id, | ||
496 | name: abuse.VideoCommentAbuse.VideoComment.Video.name, | ||
495 | uuid: abuse.VideoCommentAbuse.VideoComment.Video.uuid | 497 | uuid: abuse.VideoCommentAbuse.VideoComment.Video.uuid |
496 | } | 498 | } |
497 | } : undefined | 499 | } : undefined |