From 79a8dee5d6fba6bc23c07efdd1657566810eb181 Mon Sep 17 00:00:00 2001 From: nobody Date: Fri, 15 Apr 2022 04:08:11 -0700 Subject: [PATCH] ActivityPub C2S: only execute API authentication flow for POST requests. --- Code/Module/Outbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Module/Outbox.php b/Code/Module/Outbox.php index cdafe5c33..1581638f2 100644 --- a/Code/Module/Outbox.php +++ b/Code/Module/Outbox.php @@ -24,7 +24,7 @@ class Outbox extends Controller { public function init() { - if (! api_user()) { + if ($_SERVER['REQUEST_METHOD'] === 'POST' && ! api_user()) { api_login(); } }