From db4b15f21fbf4e33434e930ffc7fb768cdcf9d42 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Mar 2021 14:24:11 +0100 Subject: Use got instead of request --- shared/extra-utils/requests/activitypub.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'shared/extra-utils/requests') diff --git a/shared/extra-utils/requests/activitypub.ts b/shared/extra-utils/requests/activitypub.ts index 4762a8665..2a7f20289 100644 --- a/shared/extra-utils/requests/activitypub.ts +++ b/shared/extra-utils/requests/activitypub.ts @@ -5,14 +5,13 @@ import { activityPubContextify } from '../../../server/helpers/activitypub' function makePOSTAPRequest (url: string, body: any, httpSignature: any, headers: any) { const options = { - method: 'POST', - uri: url, + method: 'POST' as 'POST', json: body, httpSignature, headers } - return doRequest(options) + return doRequest(url, options) } async function makeFollowRequest (to: { url: string }, by: { url: string, privateKey }) { -- cgit v1.2.3