diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.js index 4a8b2b08fa..071c70e395 100644 --- a/src/activitypub/helpers.js +++ b/src/activitypub/helpers.js @@ -108,7 +108,11 @@ Helpers.query = async (id) => { let response; let body; try { - ({ response, body } = await request.get(`https://${hostname}/.well-known/webfinger?${query}`)); + ({ response, body } = await request.get(`https://${hostname}/.well-known/webfinger?${query}`, { + headers: { + accept: 'application/jrd+json', + }, + })); } catch (e) { return false; }