From: Mikael Nordfeldth Date: Wed, 17 Feb 2016 23:33:16 +0000 (+0100) Subject: Only show "public:site" in ToSelector if notice/allowprivate is true X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a838c909512591e12597f1a421be871399e1d097;p=quix0rs-gnu-social.git Only show "public:site" in ToSelector if notice/allowprivate is true --- diff --git a/lib/toselector.php b/lib/toselector.php index 2026c1dfdd..7a959ff8b5 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -119,9 +119,11 @@ class ToSelector extends Widget // Reverse so we can add entries at the end (can't unshift with a key) $choices = array_reverse($choices); - // TRANS: Option in drop-down of potential addressees. - // TRANS: %s is a StatusNet sitename. - $choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name')); + if (common_config('notice', 'allowprivate')) { + // TRANS: Option in drop-down of potential addressees. + // TRANS: %s is a StatusNet sitename. + $choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name')); + } if (!common_config('site', 'private')) { // TRANS: Option in drop-down of potential addressees.