Commit 88851b02 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(premium): set itunes:block on premium feeds to prevent indexing

parent d046ecc5
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);
        }