From f3df3762f1ec818cf3e8b2a7357407b02b43c4b8 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Wed, 5 Aug 2020 17:33:16 +0100 Subject: [PATCH] [ActivityPub][INBOX][Delete] Support Delete Actor object being a Tombstone --- plugins/ActivityPub/lib/inbox_handler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ActivityPub/lib/inbox_handler.php b/plugins/ActivityPub/lib/inbox_handler.php index a7862666de..b3f802ac06 100644 --- a/plugins/ActivityPub/lib/inbox_handler.php +++ b/plugins/ActivityPub/lib/inbox_handler.php @@ -276,6 +276,9 @@ class Activitypub_inbox_handler // We don't know the type of the deleted object :( // Nor if it's gone or not. try { + if (is_array($object)) { + $object = $object['id']; + } $aprofile = Activitypub_profile::fromUri($object, false); $res = Activitypub_explorer::get_remote_user_activity($object); Activitypub_profile::update_profile($aprofile, $res);