validation code in Notice correctly checks length of content

This commit is contained in:
Evan Prodromou 2009-08-21 08:12:57 -04:00
parent 4d05afae30
commit d5825893c8
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class Notice extends Memcached_DataObject
$final = common_shorten_links($content);
if (mb_strlen($final) > 140) {
if (Notice::contentTooLong($final)) {
common_log(LOG_INFO, 'Rejecting notice that is too long.');
return _('Problem saving notice. Too long.');
}