Use proper deleted object for removing from index

This commit is contained in:
Ekaterina Vaartis 2021-10-12 19:34:57 +03:00 committed by FloatingGhost
parent a937a98df5
commit 37913c8ddf
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
if result == :ok do
Notification.create_notifications(object)
Pleroma.Search.remove_from_index(object)
Pleroma.Search.remove_from_index(deleted_object)
{:ok, object, meta}
else