From: Mikael Nordfeldth Date: Fri, 29 Jan 2016 15:15:06 +0000 (+0100) Subject: isPerson did not exist for Ostatus_profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a5c1b063fd0f67e0f92dfae41d5f4ed947825dfc;p=quix0rs-gnu-social.git isPerson did not exist for Ostatus_profile --- 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 */