Rename search.ex to database_search.ex and add search/2
This commit is contained in:
parent
39e596a5b5
commit
0fae71f88d
4 changed files with 11 additions and 7 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.add_to_index(Map.put(activity, :object, object))
|
||||
Pleroma.Search.DatabaseSearch.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.remove_from_index(deleted_object)
|
||||
Pleroma.Search.DatabaseSearch.remove_from_index(deleted_object)
|
||||
|
||||
{:ok, object, meta}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue