From 961725205d2288610ce926eec7dc2c6e6747f18d Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 18:34:48 +0100 Subject: [PATCH] Try if Profile is a Person (in effect ActivityObject::PERSON) --- classes/Profile.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.39.5