]> 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 Häder <roland@mxchange.org>
Sun, 29 Mar 2020 22:21:07 +0000 (00:21 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
classes/Notice.php

index 19ddf6533d90b77394dc043ea025d4b5b2c9aa74..533d4c100c5b2df4879c478519e5af99d2483648 100644 (file)
@@ -2862,6 +2862,14 @@ class Notice extends Managed_DataObject
         return !($is_local === Notice::LOCAL_NONPUBLIC || $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.