Try if Profile is a Person (in effect ActivityObject::PERSON)

This commit is contained in:
Mikael Nordfeldth 2016-01-13 18:34:48 +01:00
parent 5c262a788d
commit 961725205d
1 changed files with 6 additions and 0 deletions

View File

@ -122,6 +122,12 @@ class Profile extends Managed_DataObject
}
}
public function isPerson()
{
// Maybe other things than PERSON and GROUP can have Profiles in the future?
return !$this->isGroup();
}
public function isLocal()
{
try {