forked from GNUsocial/gnu-social
user/show API method needs to fall back to basic auth so that
verify_credentials works correctly.
This commit is contained in:
parent
673cdab874
commit
802b909518
@ -43,7 +43,7 @@ class TwitapiusersAction extends TwitterapiAction
|
|||||||
if ($email) {
|
if ($email) {
|
||||||
$user = User::staticGet('email', $email);
|
$user = User::staticGet('email', $email);
|
||||||
} else {
|
} else {
|
||||||
$user = $this->get_user($apidata['api_arg']);
|
$user = $this->get_user($apidata['api_arg'], $apidata);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($user)) {
|
if (empty($user)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user