mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
ActivityPub C2S: only execute API authentication flow for POST requests.
This commit is contained in:
parent
4d84ce5cf0
commit
79a8dee5d6
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class Outbox extends Controller
|
|||
{
|
||||
|
||||
public function init() {
|
||||
if (! api_user()) {
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && ! api_user()) {
|
||||
api_login();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue