Commit 44ad6511 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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

fixes #550
parent 7287e603
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 (