diff --git a/modules/PremiumPodcasts/Controllers/LockController.php b/modules/PremiumPodcasts/Controllers/LockController.php index 2a507273446539eb75b367a4f471c0f16550a256..68899039878e4ecd01738062abc7f9e1c853c8a4 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 78ec988cbca5113e0c293e3209a5ded1b71880d3..aaa3d0ec61315b7cd13d967ad27e2b3600093d0a 100644 --- a/themes/cp_app/podcast/unlock.php +++ b/themes/cp_app/podcast/unlock.php @@ -22,8 +22,6 @@ } </script> - <?= $metatags ?> - <link rel='stylesheet' type='text/css' href='<?= route_to('themes-colors-css') ?>' /> <?= service('vite') ->asset('styles/index.css', 'css') ?> @@ -77,8 +75,8 @@ <div class="flex items-center pl-4 -mb-6 md:pl-8 md:-mb-8 gap-x-4"> <img src="<?= $podcast->cover->thumbnail_url ?>" alt="<?= esc($podcast->title) ?>" class="z-[45] h-24 rounded-full sm:h-28 md:h-36 ring-3 ring-background-elevated aspect-square" loading="lazy" /> <div class="relative flex flex-col text-white -top-3 sm:top-0 md:top-2"> - <h1 class="text-lg font-bold leading-none line-clamp-2 md:leading-none md:text-2xl font-display"><?= esc($podcast->title) ?><span class="ml-1 font-sans text-base font-normal">@<?= esc($podcast->handle) ?></span></h1> - <div class=""> + <div class="text-lg font-bold leading-none line-clamp-2 md:leading-none md:text-2xl font-display"><?= esc($podcast->title) ?><span class="ml-1 font-sans text-base font-normal">@<?= esc($podcast->handle) ?></span></div> + <div> <?= explicit_badge($podcast->parental_advisory === 'explicit', 'mr-1') ?> <span class="text-xs"><?= lang('Podcast.followers', [ 'numberOfFollowers' => $podcast->actor->followers_count,