diff --git a/modules/PremiumPodcasts/Controllers/LockController.php b/modules/PremiumPodcasts/Controllers/LockController.php index 2a507273..68899039 100644 --- a/modules/PremiumPodcasts/Controllers/LockController.php +++ b/modules/PremiumPodcasts/Controllers/LockController.php @@ -43,11 +43,13 @@ class LockController extends BaseController return $this->{$method}(); } - public function index(): string + public function index(): RedirectResponse|string { + if (! $this->podcast->is_premium) { + return redirect()->route('podcast-activity', [$this->podcast->handle]); + } + $data = [ - // TODO: metatags for locked premium podcasts - 'metatags' => '', 'podcast' => $this->podcast, ]; diff --git a/themes/cp_app/podcast/unlock.php b/themes/cp_app/podcast/unlock.php index 78ec988c..aaa3d0ec 100644 --- a/themes/cp_app/podcast/unlock.php +++ b/themes/cp_app/podcast/unlock.php @@ -22,8 +22,6 @@ } - = $metatags ?> - ' /> = service('vite') ->asset('styles/index.css', 'css') ?> @@ -77,8 +75,8 @@