Don't perform BasicAuth on public endpoints

This commit is contained in:
Michael 2023-04-08 19:17:57 +00:00
parent bb0cb0dc11
commit 701681ea21

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']));
}