activitypub: preload child objects when fetching timelines

This commit is contained in:
William Pitcock 2019-03-23 00:10:17 +00:00
parent 092cedede5
commit 9aea7cc224

View File

@ -716,6 +716,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
limit: 20,
order_by: [fragment("? desc nulls last", activity.id)]
)
|> Activity.with_preloaded_object()
base_query
|> restrict_recipients(recipients, opts["user"])