From: Ekaterina Vaartis Date: Tue, 12 Oct 2021 16:17:37 +0000 (+0300) Subject: Don't try removing from index again in common_api X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a937a98df5a118a3643a75175507233ed4ac9230;p=akkoma Don't try removing from index again in common_api It's already removed in the side effects of the pipeline --- diff --git a/lib/pleroma/web/common_api.ex b/lib/pleroma/web/common_api.ex index b4887d424..92afd5cb6 100644 --- a/lib/pleroma/web/common_api.ex +++ b/lib/pleroma/web/common_api.ex @@ -146,9 +146,6 @@ defmodule Pleroma.Web.CommonAPI 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, _} ->