mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-31 19:36:44 +01:00
add missing preload
This commit is contained in:
parent
570319de97
commit
417504b4c1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue