Fix: Webfinger returned xml when json has been requested and vice versa

This commit is contained in:
Michael 2022-04-18 05:42:05 +00:00
parent 627e91f209
commit cca7d40a8f

View 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);