Skip to content

Commit

Permalink
Only show active podcasts on home subscribe grid
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed Jan 10, 2024
1 parent 3dc8f4a commit f48861d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/changelog_web/views/home_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ defmodule ChangelogWeb.HomeView do
def podcasts_with_subs(podcasts, user) do
podcasts
|> Enum.reject(&Podcast.is_news/1)
|> Enum.filter(&Podcast.is_active/1)
|> Enum.map(fn podcast ->
Map.put(podcast, :is_subscribed, PersonView.is_subscribed(user, podcast))
end)
Expand Down

0 comments on commit f48861d

Please sign in to comment.