nested preload

This commit is contained in:
byte[] 2019-10-10 21:48:44 -04:00
parent dfaccb964d
commit 77235013bf

View file

@ -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