From efdc7d9ba045101b867fd849d3f64fa89b5d13f7 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);