mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
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
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