diff options
Diffstat (limited to 'server/lib/activitypub/share.ts')
-rw-r--r-- | server/lib/activitypub/share.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/server/lib/activitypub/share.ts b/server/lib/activitypub/share.ts index 1767df0ae..3bece0ff7 100644 --- a/server/lib/activitypub/share.ts +++ b/server/lib/activitypub/share.ts | |||
@@ -54,12 +54,7 @@ async function addVideoShares (shareUrls: string[], instance: VideoModel) { | |||
54 | url: shareUrl | 54 | url: shareUrl |
55 | } | 55 | } |
56 | 56 | ||
57 | await VideoShareModel.findOrCreate({ | 57 | await VideoShareModel.upsert(entry) |
58 | where: { | ||
59 | url: shareUrl | ||
60 | }, | ||
61 | defaults: entry | ||
62 | }) | ||
63 | } catch (err) { | 58 | } catch (err) { |
64 | logger.warn('Cannot add share %s.', shareUrl, { err }) | 59 | logger.warn('Cannot add share %s.', shareUrl, { err }) |
65 | } | 60 | } |