From be55b650636a89124b58e5faa14d86fa556ab11d Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 20 Dec 2019 13:20:26 -0500 Subject: [PATCH] preload deleted by in post list --- lib/philomena_web/controllers/post_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/post_controller.ex b/lib/philomena_web/controllers/post_controller.ex index 0bd6ad02..37b07a41 100644 --- a/lib/philomena_web/controllers/post_controller.ex +++ b/lib/philomena_web/controllers/post_controller.ex @@ -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 =