diff options
-rw-r--r-- | Zotlabs/Lib/Activity.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index a8e0da776..5f222754b 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1493,6 +1493,14 @@ class Activity { if(! is_array($person_obj)) return; + $inbox = $person_obj['inbox']; + + // invalid identity + + if (! $inbox || strpos($inbox,z_root()) !== false) { + return; + } + $name = $person_obj['name']; if(! $name) $name = $person_obj['preferredUsername']; @@ -1540,14 +1548,6 @@ class Activity { $profile = $url; } - $inbox = $person_obj['inbox']; - - // invalid identity - - if (! $inbox) { - return; - } - $collections = []; if($inbox) { |