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 eb22d2d240
commit bbbec435b0

View File

@ -1371,7 +1371,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.