From: William Pitcock Date: Sat, 23 Mar 2019 00:10:17 +0000 (+0000) Subject: activitypub: preload child objects when fetching timelines X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=9aea7cc224c09e37a9a46277a9fbfb0af383fc0e;p=akkoma activitypub: preload child objects when fetching timelines --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 2470b4a71..7d38a46e5 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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"])