activitypub: preload child objects when fetching timelines
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 00:10:17 +0000 (00:10 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Mar 2019 00:10:17 +0000 (00:10 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index 2470b4a710dfefc67e2b4dbe3f2b6e283005c301..7d38a46e5b3778108a48d6c2ffec11f722b885b2 100644 (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"])