Use proper deleted object for removing from index
authorEkaterina Vaartis <vaartis@kotobank.ch>
Tue, 12 Oct 2021 16:34:57 +0000 (19:34 +0300)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 29 Jun 2022 19:48:44 +0000 (20:48 +0100)
lib/pleroma/web/activity_pub/side_effects.ex

index 98911f28f0075a5859474fa6ad2f272df37f2eb3..097afa30ec9cce179a0f98d29fe787293e488400 100644 (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