preload deleted by in post list

This commit is contained in:
byte[] 2019-12-20 13:20:26 -05:00
parent 6c3515799b
commit be55b65063

View file

@ -29,7 +29,7 @@ defmodule PhilomenaWeb.PostController do
sort: %{created_at: :desc}
},
conn.assigns.pagination,
Post |> preload([topic: :forum, user: [awards: :badge]])
Post |> preload([:deleted_by, topic: :forum, user: [awards: :badge]])
)
rendered =