Fix error showing feed with enabled filter
This commit is contained in:
parent
eb313cf695
commit
16884dffef
|
@ -26,7 +26,7 @@ defmodule FrenzyWeb.FeedController do
|
|||
defp user_owns_feed(conn, _opts), do: conn
|
||||
|
||||
def show(conn, %{"id" => id}) do
|
||||
feed = conn.assigns[:feed]
|
||||
feed = conn.assigns[:feed] |> Repo.preload(:filter)
|
||||
items = Repo.all(from Item, where: [feed_id: ^id, tombstone: false], order_by: [desc: :date])
|
||||
|
||||
render(conn, "show.html", %{
|
||||
|
|
Loading…
Reference in New Issue