diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 6f6a22bf4d..c108e78e6c 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -285,6 +285,7 @@ class OStatusPlugin extends Plugin { $matches = array(); + $wmatches = array(); // Webfinger matches: @user@example.com or even @user--one.george_orwell@1984.biz if (preg_match_all('!(?:^|\s+)@((?:\w+[\w\-\_\.]?)*(?:[\w\-\_\.]*\w+)@(?:\w+\-?\w+\.)*\w+(?:\w+\-\w+)*\.\w+)!', $text, diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 6b62c6f47f..ec2b8351ea 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -193,6 +193,11 @@ class Ostatus_profile extends Managed_DataObject } } + public function isPerson() + { + return $this->localProfile()->isPerson(); + } + /** * @return boolean true if this is a remote peopletag */