]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added missing isPrivateScope().
authorRoland Haeder <roland@mxchange.org>
Wed, 6 May 2015 07:45:16 +0000 (09:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 6 May 2015 07:45:16 +0000 (09:45 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
classes/Notice.php

index e155ccfcc0a86f8e84b5f9f4abe92cfe53e2b664..7b9cfd9e5b020c9f6a5fc312707ebfb537a15748 100644 (file)
@@ -2666,6 +2666,14 @@ class Notice extends Managed_DataObject
                 ($this->is_local != Notice::GATEWAY));
     }
 
+    public function isPrivateScope () {
+        return (
+            ($this->is_local === Notice::LOCAL_NONPUBLIC) ||
+            ($this->is_local === Notice::GATEWAY) ||
+            ($this->is_local === Notice::REMOTE)
+        );
+    }
+
     /**
      * Check that the given profile is allowed to read, respond to, or otherwise
      * act on this notice.