Fix: Webfinger returned xml when json has been requested and vice versa
This commit is contained in:
parent
627e91f209
commit
cca7d40a8f
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue