[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 committed by Diogo Peralta Cordeiro
parent ce4ceaf8c7
commit f3df3762f1

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