isPerson did not exist for Ostatus_profile

This commit is contained in:
Mikael Nordfeldth 2016-01-29 16:15:06 +01:00
parent 689e277c62
commit a5c1b063fd
2 changed files with 6 additions and 0 deletions

View 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,

View 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
*/