Rename Activity.Search to Search.DatabaseSearch
This commit is contained in:
parent
0fae71f88d
commit
a6946048fb
12 changed files with 181 additions and 193 deletions
|
|
@ -227,7 +227,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
Task.start(fn -> Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity) end)
|
||||
end)
|
||||
|
||||
Pleroma.Search.DatabaseSearch.add_to_index(Map.put(activity, :object, object))
|
||||
Pleroma.Search.add_to_index(Map.put(activity, :object, object))
|
||||
|
||||
meta =
|
||||
meta
|
||||
|
|
@ -330,7 +330,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
if result == :ok do
|
||||
Notification.create_notifications(object)
|
||||
|
||||
Pleroma.Search.DatabaseSearch.remove_from_index(deleted_object)
|
||||
Pleroma.Search.remove_from_index(deleted_object)
|
||||
|
||||
{:ok, object, meta}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue