]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
isPerson did not exist for Ostatus_profile
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 29 Jan 2016 15:15:06 +0000 (16:15 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 29 Jan 2016 15:15:06 +0000 (16:15 +0100)
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/classes/Ostatus_profile.php

index 6f6a22bf4dd9ae17c0c52bbcc637bbaae9bd95d3..c108e78e6c13a262bf446c60271ede6400c2a39c 100644 (file)
@@ -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,
index 6b62c6f47f6b1e450e793e00257c568c31b08ee4..ec2b8351eadb155ac17dee8fbbe5e5ef54d57e6a 100644 (file)
@@ -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
      */