From: Chocobozzz Date: Fri, 26 Jan 2018 16:48:41 +0000 (+0100) Subject: Fix video announces processing X-Git-Tag: v0.0.16-alpha~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8dfd8fd7ca376e7898c912bb985a7a4a997cd966;p=oweals%2Fpeertube.git Fix video announces processing --- 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 }) }