[ActivityPub][Explorer] More robust exception handler for invalid remote answers

This commit is contained in:
Diogo Cordeiro
2020-07-23 15:54:12 +01:00
committed by Diogo Peralta Cordeiro
parent b79d97c4e1
commit 452f05512f
2 changed files with 27 additions and 6 deletions

View File

@@ -280,8 +280,7 @@ class Activitypub_profile extends Managed_DataObject
$url = $profile->getUri();
$inboxes = Activitypub_explorer::get_actor_inboxes_uri($url);
if ($inboxes == null) {
if ($inboxes === false) {
throw new Exception('This is not an ActivityPub user thus AProfile is politely refusing to proceed.');
}