From 77235013bf8d31d2e2eed61e178d84922a9248e5 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 10 Oct 2019 21:48:44 -0400 Subject: [PATCH] nested preload --- lib/philomena_web/controllers/activity_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/activity_controller.ex b/lib/philomena_web/controllers/activity_controller.ex index faeff54c..06c19031 100644 --- a/lib/philomena_web/controllers/activity_controller.ex +++ b/lib/philomena_web/controllers/activity_controller.ex @@ -57,7 +57,7 @@ defmodule PhilomenaWeb.ActivityController do sort: %{posted_at: :desc} }, %{page_number: 1, page_size: 6}, - Comment |> preload([:user, :image]) + Comment |> preload([:user, image: [:tags]]) ) watched = if !!user do