Twitter bridge - Changed Twitter username length check from 64 chars to Twitter max of 15.

darcs-hash:20080923084145-7b5ce-25cfef64778010135234046be25294a3c7860419.gz
This commit is contained in:
Zach Copley 2008-09-23 04:41:45 -04:00
parent 04b95c25ad
commit cbd8f39f24
1 changed files with 3 additions and 3 deletions

View File

@ -112,9 +112,9 @@ class TwittersettingsAction extends SettingsAction {
$friendsync = $this->boolean('friendsync');
if (!Validate::string($twitter_username, array('min_length' => 1,
'max_length' => 64,
'format' => VALIDATE_NUM . VALIDATE_ALPHA . '_'))) {
$this->show_form(_('Username must have only numbers, upper- and lowercase letters, and underscore (_).'));
'max_length' => 64,
'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
$this->show_form(_('Username must have only lowercase letters and numbers and no spaces.'));
return;
}