diff options
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/videos.ts | 7 |
1 files 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[]) { | |||
279 | 279 | ||
280 | const entry = { | 280 | const entry = { |
281 | actorId: actor.id, | 281 | actorId: actor.id, |
282 | videoId: instance.id | 282 | videoId: instance.id, |
283 | url: shareUrl | ||
283 | } | 284 | } |
284 | 285 | ||
285 | await VideoShareModel.findOrCreate({ | 286 | await VideoShareModel.findOrCreate({ |
286 | where: entry, | 287 | where: { |
288 | url: shareUrl | ||
289 | }, | ||
287 | defaults: entry | 290 | defaults: entry |
288 | }) | 291 | }) |
289 | } | 292 | } |