diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-20 09:26:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-20 09:26:50 +0100 |
commit | e203f2e0e1ba778201191dfaf83bc90341616610 (patch) | |
tree | 0115fa08560588882949cad47a0572fcaf33d774 /server/lib/activitypub/process | |
parent | 24a8e782d8b2adb208d9cfb8659450395e2e2a77 (diff) | |
download | PeerTube-e203f2e0e1ba778201191dfaf83bc90341616610.tar.gz PeerTube-e203f2e0e1ba778201191dfaf83bc90341616610.tar.zst PeerTube-e203f2e0e1ba778201191dfaf83bc90341616610.zip |
Only import bootstrap component that we need
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r-- | server/lib/activitypub/process/process-announce.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/process/process-announce.ts b/server/lib/activitypub/process/process-announce.ts index 5568ff538..c9738f926 100644 --- a/server/lib/activitypub/process/process-announce.ts +++ b/server/lib/activitypub/process/process-announce.ts | |||
@@ -51,10 +51,10 @@ function shareVideo (actorAnnouncer: ActorModel, activity: ActivityAnnounce) { | |||
51 | let video: VideoModel | 51 | let video: VideoModel |
52 | 52 | ||
53 | if (typeof announced === 'string') { | 53 | if (typeof announced === 'string') { |
54 | video = await VideoModel.loadByUrlAndPopulateAccount(announced as string) | 54 | video = await VideoModel.loadByUrlAndPopulateAccount(announced) |
55 | if (!video) throw new Error('Unknown video to share ' + announced) | 55 | if (!video) throw new Error('Unknown video to share ' + announced) |
56 | } else { | 56 | } else { |
57 | video = await processCreateActivity(announced as ActivityCreate) | 57 | video = await processCreateActivity(announced) |
58 | } | 58 | } |
59 | 59 | ||
60 | const share = { | 60 | const share = { |