Fix posts AP endpoint

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-12-17 17:32:59 +01:00
parent f7d064c022
commit 3635967439
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -145,6 +145,6 @@ defmodule Mobilizon.Posts do
Post Post
|> where(attributed_to_id: ^group_id) |> where(attributed_to_id: ^group_id)
|> order_by(desc: :inserted_at) |> order_by(desc: :inserted_at)
|> preload([p], [:author, :attributed_to, :picture]) |> preload([p], [:author, :attributed_to, :picture, :media])
end end
end end