forked from AkkomaGang/akkoma
Use proper deleted object for removing from index
This commit is contained in:
parent
a937a98df5
commit
37913c8ddf
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ def handle(%{data: %{"type" => "Delete", "object" => deleted_object}} = object,
|
||||||
if result == :ok do
|
if result == :ok do
|
||||||
Notification.create_notifications(object)
|
Notification.create_notifications(object)
|
||||||
|
|
||||||
Pleroma.Search.remove_from_index(object)
|
Pleroma.Search.remove_from_index(deleted_object)
|
||||||
|
|
||||||
{:ok, object, meta}
|
{:ok, object, meta}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue