Merge pull request #11417 from annando/fix-webfinger
Fix: Webfinger returned xml when json has been requested and vice versa
This commit is contained in:
commit
9f58141dad
|
@ -101,7 +101,7 @@ class Xrd extends BaseModule
|
||||||
$avatar = ['type' => 'image/jpeg'];
|
$avatar = ['type' => 'image/jpeg'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mode == Response::TYPE_JSON) {
|
if ($mode == Response::TYPE_XML) {
|
||||||
self::printXML($alias, DI::baseUrl()->get(), $user, $owner, $avatar);
|
self::printXML($alias, DI::baseUrl()->get(), $user, $owner, $avatar);
|
||||||
} else {
|
} else {
|
||||||
self::printJSON($alias, DI::baseUrl()->get(), $owner, $avatar);
|
self::printJSON($alias, DI::baseUrl()->get(), $owner, $avatar);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user