Skip to content

Commit

Permalink
Let unpublished episode share images be viewed
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed May 7, 2024
1 parent f393fc6 commit f897a09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/changelog_web/controllers/episode_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ defmodule ChangelogWeb.EpisodeController do
def img(conn, %{"slug" => slug}, podcast = %{slug: "news"}) do
episode =
assoc(podcast, :episodes)
|> Episode.published()
|> Episode.preload_all()
|> Repo.get_by!(slug: slug)

Expand All @@ -42,7 +41,6 @@ defmodule ChangelogWeb.EpisodeController do
def img(conn, %{"slug" => slug}, podcast) do
episode =
assoc(podcast, :episodes)
|> Episode.published()
|> Episode.preload_all()
|> Repo.get_by!(slug: slug)

Expand Down

0 comments on commit f897a09

Please sign in to comment.