From: Zach Copley Date: Tue, 23 Sep 2008 08:41:45 +0000 (-0400) Subject: Twitter bridge - Changed Twitter username length check from 64 chars to Twitter max... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cbd8f39f242f63fdf94731e0dd1df5ae10870840;p=quix0rs-gnu-social.git Twitter bridge - Changed Twitter username length check from 64 chars to Twitter max of 15. darcs-hash:20080923084145-7b5ce-25cfef64778010135234046be25294a3c7860419.gz --- diff --git a/actions/twittersettings.php b/actions/twittersettings.php index bdf02013b6..bdb9958dee 100644 --- a/actions/twittersettings.php +++ b/actions/twittersettings.php @@ -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; }