From 88851b022663d575a816f0e2f33f0353767dd52d Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Fri, 12 Apr 2024 13:07:23 +0000 Subject: [PATCH] fix(premium): set itunes:block on premium feeds to prevent indexing --- app/Helpers/rss_helper.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Helpers/rss_helper.php b/app/Helpers/rss_helper.php index 29c6d676..3f85b053 100644 --- a/app/Helpers/rss_helper.php +++ b/app/Helpers/rss_helper.php @@ -17,7 +17,6 @@ use Config\Mimes; use Modules\Media\Entities\Chapters; use Modules\Media\Entities\Transcript; use Modules\PremiumPodcasts\Entities\Subscription; -use Modules\WebSub\Config\WebSub; if (! function_exists('get_rss_feed')) { /** @@ -274,7 +273,7 @@ if (! function_exists('get_rss_feed')) { $channel->addChild('type', $podcast->type, $itunesNamespace); $podcast->copyright && $channel->addChild('copyright', $podcast->copyright); - if ($podcast->is_blocked) { + if ($podcast->is_blocked || $subscription instanceof Subscription) { $channel->addChild('block', 'Yes', $itunesNamespace); }