From 711bb8be7d3c5219d6d45bfbfb7e5ba6c83d3f09 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 21 Dec 2022 21:04:54 +0100 Subject: [PATCH] fixup: add missing redirect argument --- packages/backend/src/remote/activitypub/request.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/src/remote/activitypub/request.ts b/packages/backend/src/remote/activitypub/request.ts index dd1aeccea..7116e8c8e 100644 --- a/packages/backend/src/remote/activitypub/request.ts +++ b/packages/backend/src/remote/activitypub/request.ts @@ -27,6 +27,8 @@ export async function request(user: { id: User['id'] }, url: string, object: any method: req.request.method, headers: req.request.headers, body, + // don't allow redirects on the inbox + redirect: 'error', }); }; @@ -54,6 +56,7 @@ export async function signedGet(url: string, user: { id: User['id'] }): Promise< url, method: req.request.method, headers: req.request.headers, + redirect: 'manual', }); if (res.status >= 300 && res.status < 400) {