]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Webfinger returned xml when json has been requested and vice versa
authorMichael <heluecht@pirati.ca>
Mon, 18 Apr 2022 05:42:05 +0000 (05:42 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 18 Apr 2022 05:42:05 +0000 (05:42 +0000)
src/Module/Xrd.php

index 3d8f50fc21d00285715c62e04a7983b57e56b5d2..1fc0431095d5e52dccd001b9723b445c52d02e57 100644 (file)
@@ -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);