[ActivityPub][INBOX][Delete] Support Delete Actor object being a Tombstone

This commit is contained in:
Diogo Cordeiro 2020-08-05 17:33:16 +01:00
parent e4e41bb595
commit efdc7d9ba0

View File

@ -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);