aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/handlers/activitypub-http-unicast.ts
diff options
context:
space:
mode:
authormira.bat <97340105+irafire@users.noreply.github.com>2023-07-27 17:01:15 +0200
committerGitHub <noreply@github.com>2023-07-27 17:01:15 +0200
commitf862be2749b4f2d8dee99128d7e3064a69920e11 (patch)
tree20643166e07cb31ca3e0d05b4490000150b2f1c4 /server/lib/job-queue/handlers/activitypub-http-unicast.ts
parent787d822cd471d1e4bd5a37c687c78cd5f69d8645 (diff)
downloadPeerTube-f862be2749b4f2d8dee99128d7e3064a69920e11.tar.gz
PeerTube-f862be2749b4f2d8dee99128d7e3064a69920e11.tar.zst
PeerTube-f862be2749b4f2d8dee99128d7e3064a69920e11.zip
Add an option to sign federated fetches for mastodon compatibility (#5898)
* Fix player error modal Not hidden when we change the video * Correctly dispose player components * Sign cross-server fetch requests for mastodon AUTHORIZED_FETCH compatibilty * Add a remote fetch sign configuration knob * Federated fetches refactoring --------- Co-authored-by: Chocobozzz <me@florianbigard.com> Co-authored-by: ira <ira@foxgirl.space>
Diffstat (limited to 'server/lib/job-queue/handlers/activitypub-http-unicast.ts')
-rw-r--r--server/lib/job-queue/handlers/activitypub-http-unicast.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-http-unicast.ts b/server/lib/job-queue/handlers/activitypub-http-unicast.ts
index 9e4e84002..50fca3f94 100644
--- a/server/lib/job-queue/handlers/activitypub-http-unicast.ts
+++ b/server/lib/job-queue/handlers/activitypub-http-unicast.ts
@@ -12,7 +12,7 @@ async function processActivityPubHttpUnicast (job: Job) {
12 const uri = payload.uri 12 const uri = payload.uri
13 13
14 const body = await computeBody(payload) 14 const body = await computeBody(payload)
15 const httpSignatureOptions = await buildSignedRequestOptions(payload) 15 const httpSignatureOptions = await buildSignedRequestOptions({ signatureActorId: payload.signatureActorId, hasPayload: true })
16 16
17 const options = { 17 const options = {
18 method: 'POST' as 'POST', 18 method: 'POST' as 'POST',