mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-24 00:50:29 +00:00
activitypub: preload child objects when fetching timelines
This commit is contained in:
parent
092cedede5
commit
9aea7cc224
1 changed files with 1 additions and 0 deletions
|
@ -716,6 +716,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
limit: 20,
|
limit: 20,
|
||||||
order_by: [fragment("? desc nulls last", activity.id)]
|
order_by: [fragment("? desc nulls last", activity.id)]
|
||||||
)
|
)
|
||||||
|
|> Activity.with_preloaded_object()
|
||||||
|
|
||||||
base_query
|
base_query
|
||||||
|> restrict_recipients(recipients, opts["user"])
|
|> restrict_recipients(recipients, opts["user"])
|
||||||
|
|
Loading…
Reference in a new issue