Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited)

This commit is contained in:
Brion Vibber 2010-01-05 16:15:12 -08:00
parent 9215496902
commit 8af7ba0226

View File

@ -1361,7 +1361,7 @@ class Notice extends Memcached_DataObject
$this->content);
$maxlen = common_config('site', 'textlimit');
if (mb_strlen($content) > $maxlen) {
if ($maxlen > 0 && mb_strlen($content) > $maxlen) {
// Web interface and current Twitter API clients will
// pull the original notice's text, but some older
// clients and RSS/Atom feeds will see this trimmed text.