mirror of
https://github.com/friendica/friendica
synced 2024-11-19 13:03:41 +00:00
Standards
This commit is contained in:
parent
ca5e0eaaea
commit
4b280a7279
1 changed files with 1 additions and 3 deletions
|
@ -120,9 +120,7 @@ class OAuth
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$bearer = trim(substr($authorization, 7));
|
$condition = ['access_token' => trim(substr($authorization, 7))];
|
||||||
|
|
||||||
$condition = ['access_token' => $bearer];
|
|
||||||
|
|
||||||
$token = DBA::selectFirst('application-view', ['uid', 'id', 'name', 'website', 'created_at', 'read', 'write', 'follow', 'push'], $condition);
|
$token = DBA::selectFirst('application-view', ['uid', 'id', 'name', 'website', 'created_at', 'read', 'write', 'follow', 'push'], $condition);
|
||||||
if (!DBA::isResult($token)) {
|
if (!DBA::isResult($token)) {
|
||||||
|
|
Loading…
Reference in a new issue