projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab0f13
)
Don't try removing from index again in common_api
author
Ekaterina Vaartis
<vaartis@kotobank.ch>
Tue, 12 Oct 2021 16:17:37 +0000
(19:17 +0300)
committer
FloatingGhost
<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
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/common_api.ex
b/lib/pleroma/web/common_api.ex
index b4887d4244056157e7abfe61bd3bb59b44150e98..92afd5cb61e6533ebfc0359742b8eee21bc1ed14 100644
(file)
--- 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, _} ->