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:
parent
821a49612a
commit
23d717ebbc
@ -146,9 +146,6 @@ defmodule Pleroma.Web.CommonAPI do
|
|||||||
true <- User.superuser?(user) || user.ap_id == object.data["actor"],
|
true <- User.superuser?(user) || user.ap_id == object.data["actor"],
|
||||||
{:ok, delete_data, _} <- Builder.delete(user, object.data["id"]),
|
{:ok, delete_data, _} <- Builder.delete(user, object.data["id"]),
|
||||||
{:ok, delete, _} <- Pipeline.common_pipeline(delete_data, local: true) do
|
{: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}
|
{:ok, delete}
|
||||||
else
|
else
|
||||||
{:find_activity, _} ->
|
{:find_activity, _} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user