From f1eb392a242c77152d986fadc3cf0f4dc9e592ec Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 22 Jan 2025 13:02:04 +0100 Subject: [PATCH] better handling #478 --- server/federation/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/federation/users.js b/server/federation/users.js index c4b8bdb9..74fd9838 100644 --- a/server/federation/users.js +++ b/server/federation/users.js @@ -10,7 +10,7 @@ const get = require('lodash/get') module.exports = { get (req, res) { - if (req.accepts(['html','json']) === 'html') { + if (req.accepts(['json','html']) !== 'json') { log.debug('[FEDI] Get actor but prefer text/html, redirect to homepage') return res.redirect(301, '/') }