From cca7d40a8f6fa40df6b3fd74978a0336ea2605e1 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 18 Apr 2022 05:42:05 +0000 Subject: [PATCH] Fix: Webfinger returned xml when json has been requested and vice versa --- src/Module/Xrd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 3d8f50fc21..1fc0431095 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -101,7 +101,7 @@ class Xrd extends BaseModule $avatar = ['type' => 'image/jpeg']; } - if ($mode == Response::TYPE_JSON) { + if ($mode == Response::TYPE_XML) { self::printXML($alias, DI::baseUrl()->get(), $user, $owner, $avatar); } else { self::printJSON($alias, DI::baseUrl()->get(), $owner, $avatar); -- 2.39.5