diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/requests/activitypub.ts | 5 | ||||
-rw-r--r-- | shared/models/server/job.model.ts | 2 |
2 files changed, 3 insertions, 4 deletions
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' | |||
5 | 5 | ||
6 | function makePOSTAPRequest (url: string, body: any, httpSignature: any, headers: any) { | 6 | function makePOSTAPRequest (url: string, body: any, httpSignature: any, headers: any) { |
7 | const options = { | 7 | const options = { |
8 | method: 'POST', | 8 | method: 'POST' as 'POST', |
9 | uri: url, | ||
10 | json: body, | 9 | json: body, |
11 | httpSignature, | 10 | httpSignature, |
12 | headers | 11 | headers |
13 | } | 12 | } |
14 | 13 | ||
15 | return doRequest(options) | 14 | return doRequest(url, options) |
16 | } | 15 | } |
17 | 16 | ||
18 | async function makeFollowRequest (to: { url: string }, by: { url: string, privateKey }) { | 17 | async function makeFollowRequest (to: { url: string }, by: { url: string, privateKey }) { |
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index 83ef84457..e4acfee8d 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -59,7 +59,7 @@ export type ActivitypubHttpFetcherPayload = { | |||
59 | export type ActivitypubHttpUnicastPayload = { | 59 | export type ActivitypubHttpUnicastPayload = { |
60 | uri: string | 60 | uri: string |
61 | signatureActorId?: number | 61 | signatureActorId?: number |
62 | body: any | 62 | body: object |
63 | contextType?: ContextType | 63 | contextType?: ContextType |
64 | } | 64 | } |
65 | 65 | ||