diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-03 11:12:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-03 11:31:23 +0100 |
commit | 598edb8af1cc7e5ea3ead1ec9c96c4853b90be36 (patch) | |
tree | d74b090ecf06ebc58eab9b79ab35e981edf94cc2 /server/lib/job-queue/handlers/activitypub-http-unicast.ts | |
parent | d6ebf0cac4ecacd672805e94b76541e569d42153 (diff) | |
download | PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.tar.gz PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.tar.zst PeerTube-598edb8af1cc7e5ea3ead1ec9c96c4853b90be36.zip |
Reduce AP context size on specific activities
Diffstat (limited to 'server/lib/job-queue/handlers/activitypub-http-unicast.ts')
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-unicast.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-http-unicast.ts b/server/lib/job-queue/handlers/activitypub-http-unicast.ts index c70ce3be9..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' | |||
4 | import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils' | 4 | import { buildGlobalHeaders, buildSignedRequestOptions, computeBody } from './utils/activitypub-http-utils' |
5 | import { JOB_REQUEST_TIMEOUT } from '../../../initializers/constants' | 5 | import { JOB_REQUEST_TIMEOUT } from '../../../initializers/constants' |
6 | import { ActorFollowScoreCache } from '../../files-cache' | 6 | import { ActorFollowScoreCache } from '../../files-cache' |
7 | import { ContextType } from '@server/helpers/activitypub' | ||
7 | 8 | ||
8 | export type ActivitypubHttpUnicastPayload = { | 9 | export type ActivitypubHttpUnicastPayload = { |
9 | uri: string | 10 | uri: string |
10 | signatureActorId?: number | 11 | signatureActorId?: number |
11 | body: any | 12 | body: any |
13 | contextType?: ContextType | ||
12 | } | 14 | } |
13 | 15 | ||
14 | async function processActivityPubHttpUnicast (job: Bull.Job) { | 16 | async function processActivityPubHttpUnicast (job: Bull.Job) { |