From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 17:34:48 +0000 (+0100) Subject: Try if Profile is a Person (in effect ActivityObject::PERSON) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=961725205d2288610ce926eec7dc2c6e6747f18d;p=quix0rs-gnu-social.git Try if Profile is a Person (in effect ActivityObject::PERSON) --- diff --git a/classes/Profile.php b/classes/Profile.php index 9c334fd923..875ad9ade1 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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 {