aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-02-28 16:51:25 +0100
committerChocobozzz <me@florianbigard.com>2020-02-28 16:51:25 +0100
commit366caf8b71f3d82336b6ac243845c783ef673fc1 (patch)
tree4a685d1177802dac160c6e758fd650c059b84a5d /server/lib/activitypub
parent3637106d7af7a72a9ec80a6b2769c6241f60d909 (diff)
downloadPeerTube-366caf8b71f3d82336b6ac243845c783ef673fc1.tar.gz
PeerTube-366caf8b71f3d82336b6ac243845c783ef673fc1.tar.zst
PeerTube-366caf8b71f3d82336b6ac243845c783ef673fc1.zip
Fix build with typescript 3.8
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/share.ts2
-rw-r--r--server/lib/activitypub/video-comments.ts2
-rw-r--r--server/lib/activitypub/video-rates.ts2
3 files changed, 3 insertions, 3 deletions
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) {
36 await Bluebird.map(shareUrls, async shareUrl => { 36 await Bluebird.map(shareUrls, async shareUrl => {
37 try { 37 try {
38 // Fetch url 38 // Fetch url
39 const { body } = await doRequest({ 39 const { body } = await doRequest<any>({
40 uri: shareUrl, 40 uri: shareUrl,
41 json: true, 41 json: true,
42 activityPub: true 42 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) {
120 throw new Error('Recursion limit reached when resolving a thread') 120 throw new Error('Recursion limit reached when resolving a thread')
121 } 121 }
122 122
123 const { body } = await doRequest({ 123 const { body } = await doRequest<any>({
124 uri: url, 124 uri: url,
125 json: true, 125 json: true,
126 activityPub: true 126 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
18 await Bluebird.map(ratesUrl, async rateUrl => { 18 await Bluebird.map(ratesUrl, async rateUrl => {
19 try { 19 try {
20 // Fetch url 20 // Fetch url
21 const { body } = await doRequest({ 21 const { body } = await doRequest<any>({
22 uri: rateUrl, 22 uri: rateUrl,
23 json: true, 23 json: true,
24 activityPub: true 24 activityPub: true