From: Michael Date: Mon, 18 Apr 2022 05:42:05 +0000 (+0000) Subject: Fix: Webfinger returned xml when json has been requested and vice versa X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cca7d40a8f6fa40df6b3fd74978a0336ea2605e1;p=friendica.git Fix: Webfinger returned xml when json has been requested and vice versa --- 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);