Merge pull request #12981 from annando/no-login

Don't perform BasicAuth on public endpoints
This commit is contained in:
Philipp 2023-04-08 21:32:06 +02:00 committed by GitHub
commit 135159aa2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,7 +372,7 @@ class BaseApi extends BaseModule
*/
public static function appSupportsQuotes(): bool
{
$token = self::getCurrentApplication();
$token = OAuth::getCurrentApplicationToken();
return (!empty($token['name']) && in_array($token['name'], ['Fedilab']));
}