]> git.mxchange.org Git - friendica.git/commitdiff
Don't perform BasicAuth on public endpoints
authorMichael <heluecht@pirati.ca>
Sat, 8 Apr 2023 19:17:57 +0000 (19:17 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 8 Apr 2023 19:17:57 +0000 (19:17 +0000)
src/Module/BaseApi.php

index b5fc8c8499254b97e74f2ab670cc8a6b984be71a..d6e5f748f23d35976b5cf99eb84e2ddffb0ed520 100644 (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']));
        }