mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Use got instead of request
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
@@ -59,7 +59,7 @@ export type ActivitypubHttpFetcherPayload = {
|
||||
export type ActivitypubHttpUnicastPayload = {
|
||||
uri: string
|
||||
signatureActorId?: number
|
||||
body: any
|
||||
body: object
|
||||
contextType?: ContextType
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user