),
'notice' =>
array('contentlimit' => null,
+ 'allowprivate' => false, // whether to allow users to "check the padlock" to publish notices available for their subscribers.
'defaultscope' => null, // null means 1 if site/private, 0 otherwise
'hidespam' => true), // Whether to hide silenced users from timelines
'message' =>
$default);
$this->out->elementStart('span', 'checkbox-wrapper');
- $this->out->checkbox('notice_private',
- // TRANS: Checkbox label in widget for selecting potential addressees to mark the notice private.
- _('Private?'),
- $this->private);
+ if (common_config('notice', 'allowprivate')) {
+ $this->out->checkbox('notice_private',
+ // TRANS: Checkbox label in widget for selecting potential addressees to mark the notice private.
+ _('Private?'),
+ $this->private);
+ }
$this->out->elementEnd('span');
}
{
// XXX: make arg name selectable
$toArg = $action->trimmed('notice_to');
- $private = $action->boolean('notice_private');
+ $private = common_config('notice', 'allowprivate') ? $action->boolean('notice_private') : false;
if (empty($toArg)) {
return;