add missing preload

This commit is contained in:
byte[] 2019-12-18 10:06:43 -05:00
parent 570319de97
commit 417504b4c1

View file

@ -15,7 +15,7 @@ defmodule PhilomenaWeb.LoadCommentPlug do
Comment
|> where(image_id: ^image.id, id: ^to_string(conn.params[param]))
|> preload([:image, user: [awards: :badge]])
|> preload([:image, :deleted_by, user: [awards: :badge]])
|> Repo.one()
|> maybe_hide_comment(conn, show_hidden)
end