mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix(premium-podcasts): show premium flag only when podcast has published premium episodes
This commit is contained in:
parent
7d21b3509e
commit
d10c4fd753
@ -471,7 +471,9 @@ class EpisodeModel extends UuidModel
|
||||
->where([
|
||||
'podcast_id' => $podcastId,
|
||||
'is_premium' => true,
|
||||
])->countAllResults() > 0;
|
||||
])
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->countAllResults() > 0;
|
||||
}
|
||||
|
||||
public function fullTextSearch(string $query): ?BaseBuilder
|
||||
|
Loading…
x
Reference in New Issue
Block a user