ActivityPub C2S: only execute API authentication flow for POST requests.

This commit is contained in:
nobody 2022-04-15 04:08:11 -07:00
parent 4d84ce5cf0
commit 79a8dee5d6

View file

@ -24,7 +24,7 @@ class Outbox extends Controller
{
public function init() {
if (! api_user()) {
if ($_SERVER['REQUEST_METHOD'] === 'POST' && ! api_user()) {
api_login();
}
}