From 8dfd8fd7ca376e7898c912bb985a7a4a997cd966 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Jan 2018 17:48:41 +0100 Subject: [PATCH] Fix video announces processing --- server/lib/activitypub/videos.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 }) } -- 2.25.1