From e203f2e0e1ba778201191dfaf83bc90341616610 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Dec 2017 09:26:50 +0100 Subject: Only import bootstrap component that we need --- server/lib/activitypub/process/process-announce.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/activitypub/process') 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) { let video: VideoModel if (typeof announced === 'string') { - video = await VideoModel.loadByUrlAndPopulateAccount(announced as string) + video = await VideoModel.loadByUrlAndPopulateAccount(announced) if (!video) throw new Error('Unknown video to share ' + announced) } else { - video = await processCreateActivity(announced as ActivityCreate) + video = await processCreateActivity(announced) } const share = { -- cgit v1.2.3