From 366caf8b71f3d82336b6ac243845c783ef673fc1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Feb 2020 16:51:25 +0100 Subject: Fix build with typescript 3.8 --- server/lib/activitypub/share.ts | 2 +- server/lib/activitypub/video-comments.ts | 2 +- server/lib/activitypub/video-rates.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib/activitypub') diff --git a/server/lib/activitypub/share.ts b/server/lib/activitypub/share.ts index e847c4b7d..a7c645062 100644 --- a/server/lib/activitypub/share.ts +++ b/server/lib/activitypub/share.ts @@ -36,7 +36,7 @@ async function addVideoShares (shareUrls: string[], video: MVideoId) { await Bluebird.map(shareUrls, async shareUrl => { try { // Fetch url - const { body } = await doRequest({ + const { body } = await doRequest({ uri: shareUrl, json: true, activityPub: true diff --git a/server/lib/activitypub/video-comments.ts b/server/lib/activitypub/video-comments.ts index 8642d2432..3aee6799e 100644 --- a/server/lib/activitypub/video-comments.ts +++ b/server/lib/activitypub/video-comments.ts @@ -120,7 +120,7 @@ async function resolveParentComment (params: ResolveThreadParams) { throw new Error('Recursion limit reached when resolving a thread') } - const { body } = await doRequest({ + const { body } = await doRequest({ uri: url, json: true, activityPub: true diff --git a/server/lib/activitypub/video-rates.ts b/server/lib/activitypub/video-rates.ts index 79ccfbc7e..202368c8f 100644 --- a/server/lib/activitypub/video-rates.ts +++ b/server/lib/activitypub/video-rates.ts @@ -18,7 +18,7 @@ async function createRates (ratesUrl: string[], video: MVideo, rate: VideoRateTy await Bluebird.map(ratesUrl, async rateUrl => { try { // Fetch url - const { body } = await doRequest({ + const { body } = await doRequest({ uri: rateUrl, json: true, activityPub: true -- cgit v1.2.3