Don't try removing from index again in common_api
authorEkaterina Vaartis <vaartis@kotobank.ch>
Tue, 12 Oct 2021 16:17:37 +0000 (19:17 +0300)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 29 Jun 2022 19:48:44 +0000 (20:48 +0100)
It's already removed in the side effects of the pipeline

lib/pleroma/web/common_api.ex

index b4887d4244056157e7abfe61bd3bb59b44150e98..92afd5cb61e6533ebfc0359742b8eee21bc1ed14 100644 (file)
@@ -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, _} ->