mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
nested preload
This commit is contained in:
parent
dfaccb964d
commit
77235013bf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue