aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-20 09:26:50 +0100
committerChocobozzz <me@florianbigard.com>2017-12-20 09:26:50 +0100
commite203f2e0e1ba778201191dfaf83bc90341616610 (patch)
tree0115fa08560588882949cad47a0572fcaf33d774 /server/lib/activitypub
parent24a8e782d8b2adb208d9cfb8659450395e2e2a77 (diff)
downloadPeerTube-e203f2e0e1ba778201191dfaf83bc90341616610.tar.gz
PeerTube-e203f2e0e1ba778201191dfaf83bc90341616610.tar.zst
PeerTube-e203f2e0e1ba778201191dfaf83bc90341616610.zip
Only import bootstrap component that we need
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/process/process-announce.ts4
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 = {