mirror of
https://github.com/friendica/friendica
synced 2025-04-25 18:30:11 +00:00
Add response for JSON only
This commit is contained in:
parent
d925e25424
commit
fb1e8e75f5
3 changed files with 13 additions and 3 deletions
|
@ -52,6 +52,6 @@ class VerifyCredentials extends BaseApi
|
|||
|
||||
// @todo Support the source property,
|
||||
$account = DI::mstdnAccount()->createFromContactId($cdata['user'], $uid);
|
||||
$this->response->exit('account', ['account' => $account->toArray()]);
|
||||
$this->response->exitWithJson($account->toArray());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue