Don't try removing from index again in common_api

It's already removed in the side effects of the pipeline
This commit is contained in:
Ekaterina Vaartis 2021-10-12 19:17:37 +03:00
parent c569ad05b3
commit 95cb2bb694
1 changed files with 0 additions and 3 deletions

View File

@ -147,9 +147,6 @@ def delete(activity_id, user) do
true <- User.superuser?(user) || user.ap_id == object.data["actor"],
{:ok, delete_data, _} <- Builder.delete(user, object.data["id"]),
{:ok, delete, _} <- Pipeline.common_pipeline(delete_data, local: true) do
# Remove from search index for local posts
Pleroma.Search.remove_from_index(object)
{:ok, delete}
else
{:find_activity, _} ->