diff options
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r-- | server/lib/activitypub/process/process-announce.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-announce.ts b/server/lib/activitypub/process/process-announce.ts index 7dafc0593..09f2e80f3 100644 --- a/server/lib/activitypub/process/process-announce.ts +++ b/server/lib/activitypub/process/process-announce.ts | |||
@@ -43,11 +43,14 @@ async function shareVideo (actorAnnouncer: ActorModel, activity: ActivityAnnounc | |||
43 | 43 | ||
44 | const share = { | 44 | const share = { |
45 | actorId: actorAnnouncer.id, | 45 | actorId: actorAnnouncer.id, |
46 | videoId: video.id | 46 | videoId: video.id, |
47 | url: activity.id | ||
47 | } | 48 | } |
48 | 49 | ||
49 | const [ , created ] = await VideoShareModel.findOrCreate({ | 50 | const [ , created ] = await VideoShareModel.findOrCreate({ |
50 | where: share, | 51 | where: { |
52 | url: activity.id | ||
53 | }, | ||
51 | defaults: share, | 54 | defaults: share, |
52 | transaction: t | 55 | transaction: t |
53 | }) | 56 | }) |