Fix error showing feed with enabled filter

This commit is contained in:
Shadowfacts 2019-04-01 11:29:25 -04:00
parent eb313cf695
commit 16884dffef
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -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", %{