diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index c9c4674d9..40e9318e3 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -279,11 +279,14 @@ async function addVideoShares (instance: VideoModel, shareUrls: string[]) { const entry = { actorId: actor.id, - videoId: instance.id + videoId: instance.id, + url: shareUrl } await VideoShareModel.findOrCreate({ - where: entry, + where: { + url: shareUrl + }, defaults: entry }) }