aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-26 17:48:41 +0100
committerChocobozzz <me@florianbigard.com>2018-01-26 17:48:41 +0100
commit8dfd8fd7ca376e7898c912bb985a7a4a997cd966 (patch)
tree6ca2968e00e079f8e14e78ec4c0a98a469c798ce /server/lib/activitypub
parent0a67e28beeaf603110d52df3eda400e60531b3a4 (diff)
downloadPeerTube-8dfd8fd7ca376e7898c912bb985a7a4a997cd966.tar.gz
PeerTube-8dfd8fd7ca376e7898c912bb985a7a4a997cd966.tar.zst
PeerTube-8dfd8fd7ca376e7898c912bb985a7a4a997cd966.zip
Fix video announces processing
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/videos.ts7
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 }