Use with_preloaded_bookmark in create_by_object_ap_id_with_object

This commit is contained in:
rinpatch 2019-05-04 13:50:39 +03:00 committed by William Pitcock
parent 3a7c14645e
commit be067ec2ab

View 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