From 701681ea21249511fd016c4424f21220289dec74 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 8 Apr 2023 19:17:57 +0000 Subject: [PATCH] Don't perform BasicAuth on public endpoints --- src/Module/BaseApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])); } -- 2.39.5