Loading app/Config/Routes.php +1 −1 Original line number Diff line number Diff line Loading @@ -231,7 +231,7 @@ $routes->group('@(:podcastHandle)', static function ($routes): void { 'controller-method' => 'PostController::index/$2', ], 'application/ld+json; profile="https://www.w3.org/ns/activitystreams' => [ 'namespace' => 'Modules/Fediverse/Controllers', 'namespace' => 'Modules\Fediverse\Controllers', 'controller-method' => 'PostController::index\$2', ], ], Loading modules/Fediverse/Controllers/PostController.php +4 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,10 @@ class PostController extends Controller public function _remap(string $method, string ...$params): mixed { if (count($params) === 0) { throw PageNotFoundException::forPageNotFound(); } if (! ($post = model('PostModel', false)->getPostById($params[0])) instanceof Post) { throw PageNotFoundException::forPageNotFound(); } Loading Loading
app/Config/Routes.php +1 −1 Original line number Diff line number Diff line Loading @@ -231,7 +231,7 @@ $routes->group('@(:podcastHandle)', static function ($routes): void { 'controller-method' => 'PostController::index/$2', ], 'application/ld+json; profile="https://www.w3.org/ns/activitystreams' => [ 'namespace' => 'Modules/Fediverse/Controllers', 'namespace' => 'Modules\Fediverse\Controllers', 'controller-method' => 'PostController::index\$2', ], ], Loading
modules/Fediverse/Controllers/PostController.php +4 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,10 @@ class PostController extends Controller public function _remap(string $method, string ...$params): mixed { if (count($params) === 0) { throw PageNotFoundException::forPageNotFound(); } if (! ($post = model('PostModel', false)->getPostById($params[0])) instanceof Post) { throw PageNotFoundException::forPageNotFound(); } Loading