]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Merged stuff from upstream/master
[quix0rs-gnu-social.git] / classes / Notice.php
index 53832def80a8cb3f88587dc70488958eb2896d7a..2d3ed9942a4950c253c49829c9097d602f4cb57d 100644 (file)
@@ -3121,5 +3121,15 @@ class Notice extends Managed_DataObject
             print ".";
         }
         print "\n";
+
+    /**
+     * Checks whether this notice is in "private scope" (non-public notice)
+     *
+     * @return $isPrivate Whether this notice is private
+     */
+    public function isPrivateScope ()
+    {
+        return ($this->scope != Notice::SITE_SCOPE &&
+                $this->scope != Notice::PUBLIC_SCOPE);
     }
 }