diff --git a/server/lib/activitypub/videos/shared/creator.ts b/server/lib/activitypub/videos/shared/creator.ts index 688bcbb53..07252fea2 100644 --- a/server/lib/activitypub/videos/shared/creator.ts +++ b/server/lib/activitypub/videos/shared/creator.ts @@ -24,7 +24,7 @@ export class APVideoCreator extends APVideoAbstractBuilder { const channel = channelActor.VideoChannel const videoData = getVideoAttributesFromObject(channel, this.videoObject, this.videoObject.to) - const video = VideoModel.build(videoData) as MVideoThumbnail + const video = VideoModel.build({ ...videoData, likes: 0, dislikes: 0 }) as MVideoThumbnail const promiseThumbnail = this.tryToGenerateThumbnail(video) diff --git a/server/lib/activitypub/videos/shared/object-to-model-attributes.ts b/server/lib/activitypub/videos/shared/object-to-model-attributes.ts index f02b9cba6..86699c5b8 100644 --- a/server/lib/activitypub/videos/shared/object-to-model-attributes.ts +++ b/server/lib/activitypub/videos/shared/object-to-model-attributes.ts @@ -210,8 +210,6 @@ function getVideoAttributesFromObject (videoChannel: MChannelId, videoObject: Vi updatedAt: new Date(videoObject.updated), views: videoObject.views, - likes: 0, - dislikes: 0, remote: true, privacy }