Use with_preloaded_bookmark in create_by_object_ap_id_with_object
authorrinpatch <rinpatch@sdf.org>
Sat, 4 May 2019 10:50:39 +0000 (13:50 +0300)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 7 May 2019 19:33:22 +0000 (19:33 +0000)
lib/pleroma/activity.ex

index e432fcb0738c9a333a068a6f8035e4c332c8a4e1..ab41364dc622daf41412de0053574502f99a3391 100644 (file)
@@ -210,9 +210,9 @@ defmodule Pleroma.Activity do
           activity.data,
           activity.data
         ),
-      preload: [object: o],
-      preload: :bookmarks
+      preload: [object: o]
     )
+    |> with_preloaded_bookmarks()
   end
 
   def create_by_object_ap_id_with_object(_), do: nil