]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Try if Profile is a Person (in effect ActivityObject::PERSON)
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 17:34:48 +0000 (18:34 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 17:34:48 +0000 (18:34 +0100)
classes/Profile.php

index 9c334fd923be614f04f1e41e419c09639e6b62ce..875ad9ade1bd31851c60394c83e9c985d054d249 100644 (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 {