Don't try removing deleted users and such from index as posts
This commit is contained in:
parent
d89dc5518b
commit
3387935e83
2 changed files with 8 additions and 5 deletions
|
|
@ -330,7 +330,10 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
if result == :ok do
|
||||
Notification.create_notifications(object)
|
||||
|
||||
Pleroma.Search.remove_from_index(deleted_object)
|
||||
# Only remove from index when deleting actual objects, not users or anything else
|
||||
with %Pleroma.Object{} <- deleted_object do
|
||||
Pleroma.Search.remove_from_index(deleted_object)
|
||||
end
|
||||
|
||||
{:ok, object, meta}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue