From a5c1b063fd0f67e0f92dfae41d5f4ed947825dfc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 29 Jan 2016 16:15:06 +0100 Subject: [PATCH] isPerson did not exist for Ostatus_profile --- plugins/OStatus/OStatusPlugin.php | 1 + plugins/OStatus/classes/Ostatus_profile.php | 5 +++++ 2 files changed, 6 insertions(+) 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 */ -- 2.39.5