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=017eee8e5d7fb4c976032f6e1b14947254fc073e;p=quix0rs-gnu-social.git Added missing isPrivateScope(). Signed-off-by: Roland Haeder --- diff --git a/classes/Notice.php b/classes/Notice.php index e155ccfcc0..7b9cfd9e5b 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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.