X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fjob-queue%2Fhandlers%2Factivitypub-http-unicast.ts;h=6b71e28916c82aa8dd2fa6d0b8a07dfc496458b2;hb=a3b7421abb4192e215aa280418b62e96958c5e42;hp=6fbd4a716f84419055fb73c0b81e6a90411045c7;hpb=e92269053e3fd0e9b9c155ded86a1668444f3d70;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/job-queue/handlers/activitypub-http-unicast.ts b/server/lib/job-queue/handlers/activitypub-http-unicast.ts index 6fbd4a716..6b71e2891 100644 --- a/server/lib/job-queue/handlers/activitypub-http-unicast.ts +++ b/server/lib/job-queue/handlers/activitypub-http-unicast.ts @@ -4,11 +4,13 @@ import { doRequest } from '../../../helpers/requests' import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils' import { JOB_REQUEST_TIMEOUT } from '../../../initializers/constants' import { ActorFollowScoreCache } from '../../files-cache' +import { ContextType } from '@server/helpers/activitypub' export type ActivitypubHttpUnicastPayload = { uri: string signatureActorId?: number body: any + contextType?: ContextType } async function processActivityPubHttpUnicast (job: Bull.Job) { @@ -20,8 +22,6 @@ async function processActivityPubHttpUnicast (job: Bull.Job) { const body = await computeBody(payload) const httpSignatureOptions = await buildSignedRequestOptions(payload) - logger.info('hello', { httpSignatureOptions }) - const options = { method: 'POST', uri,