Commit 7a1eea58 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(home): update where clause when getting all podcasts to prevent draft podcasts from showing up

parent 11aa3586
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -185,11 +185,13 @@ class PodcastModel extends Model
                    $fediverseTablePrefix . 'posts.actor_id = podcasts.actor_id',
                    'left'
                )
                ->groupStart()
                ->where(
                    '`' . $fediverseTablePrefix . 'posts`.`published_at` <= UTC_TIMESTAMP()',
                    null,
                    false
                )->orWhere($fediverseTablePrefix . 'posts.published_at', null)
                ->groupEnd()
                ->groupBy('podcasts.actor_id')
                ->orderBy('max_published_at', 'DESC');
        } elseif ($orderBy === 'created_desc') {