Commit 35142d8e authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(fediverse): add `index` to post controller-method to access post's jsonld contents

parent 27a04bd0
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -228,11 +228,11 @@ $routes->group('@(:podcastHandle)', static function ($routes): void {
            'alternate-content' => [
                'application/activity+json' => [
                    'namespace'         => 'Modules\Fediverse\Controllers',
                    'controller-method' => 'PostController/$2',
                    'controller-method' => 'PostController::index/$2',
                ],
                'application/ld+json; profile="https://www.w3.org/ns/activitystreams' => [
                    'namespace'         => 'Modules\Fediverse\Controllers',
                    'controller-method' => 'PostController/$2',
                    'namespace'         => 'Modules/Fediverse/Controllers',
                    'controller-method' => 'PostController::index\$2',
                ],
            ],
            'filter' => 'allow-cors',