fix: return method instead of throwing a 404 when submitting a post

fixes #550
This commit is contained in:
Yassine Doghri 2025-02-24 11:19:40 +00:00
parent 7287e603e2
commit 44ad651176

View File

@ -53,7 +53,9 @@ class PostController extends FediversePostController
$this->actor = $this->podcast->actor;
if (count($params) <= 1) {
throw PageNotFoundException::forPageNotFound();
unset($params[0]);
return $this->{$method}(...$params);
}
if (