aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-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 = {