From: Roland Haeder Date: Wed, 6 May 2015 07:45:16 +0000 (+0200) Subject: Added missing isPrivateScope(). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bd18726f4d3405354966e50e9e3b1da7c25f491e;p=quix0rs-gnu-social.git Added missing isPrivateScope(). Signed-off-by: Roland Haeder --- diff --git a/classes/Notice.php b/classes/Notice.php index 19ddf6533d..533d4c100c 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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.