Merge pull request #12981 from annando/no-login
Don't perform BasicAuth on public endpoints
This commit is contained in:
@@ -372,7 +372,7 @@ class BaseApi extends BaseModule
|
|||||||
*/
|
*/
|
||||||
public static function appSupportsQuotes(): bool
|
public static function appSupportsQuotes(): bool
|
||||||
{
|
{
|
||||||
$token = self::getCurrentApplication();
|
$token = OAuth::getCurrentApplicationToken();
|
||||||
return (!empty($token['name']) && in_array($token['name'], ['Fedilab']));
|
return (!empty($token['name']) && in_array($token['name'], ['Fedilab']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user