mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-06 08:16:46 +02:00
fix(premium-podcasts): show premium flag only when podcast has published premium episodes
This commit is contained in:
parent
7d21b3509e
commit
d10c4fd753
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue