From: Michael Date: Sat, 8 Apr 2023 19:17:57 +0000 (+0000) Subject: Don't perform BasicAuth on public endpoints X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=701681ea21249511fd016c4424f21220289dec74;p=friendica.git Don't perform BasicAuth on public endpoints --- diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index b5fc8c8499..d6e5f748f2 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -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'])); }