forked from GNUsocial/gnu-social
Allow admins to set a min site textlimit of 0 (unlimited)
This commit is contained in:
parent
fb50a2d83c
commit
348412f9c9
@ -161,8 +161,8 @@ class SiteadminpanelAction extends AdminPanelAction
|
||||
|
||||
// Validate text limit
|
||||
|
||||
if (!Validate::number($values['site']['textlimit'], array('min' => 140))) {
|
||||
$this->clientError(_("Minimum text limit is 140 characters."));
|
||||
if (!Validate::number($values['site']['textlimit'], array('min' => 0))) {
|
||||
$this->clientError(_("Minimum text limit is 0 (unlimited)."));
|
||||
}
|
||||
|
||||
// Validate dupe limit
|
||||
|
Loading…
Reference in New Issue
Block a user