mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Fix: Webfinger returned xml when json has been requested and vice versa
This commit is contained in:
parent
627e91f209
commit
cca7d40a8f
1 changed files with 1 additions and 1 deletions
|
@ -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