mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-24 02:52:01 +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([
|
->where([
|
||||||
'podcast_id' => $podcastId,
|
'podcast_id' => $podcastId,
|
||||||
'is_premium' => true,
|
'is_premium' => true,
|
||||||
])->countAllResults() > 0;
|
])
|
||||||
|
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||||
|
->countAllResults() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function fullTextSearch(string $query): ?BaseBuilder
|
public function fullTextSearch(string $query): ?BaseBuilder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user