Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited)
This commit is contained in:
parent
9215496902
commit
8af7ba0226
@ -1361,7 +1361,7 @@ class Notice extends Memcached_DataObject
|
|||||||
$this->content);
|
$this->content);
|
||||||
|
|
||||||
$maxlen = common_config('site', 'textlimit');
|
$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
|
// Web interface and current Twitter API clients will
|
||||||
// pull the original notice's text, but some older
|
// pull the original notice's text, but some older
|
||||||
// clients and RSS/Atom feeds will see this trimmed text.
|
// clients and RSS/Atom feeds will see this trimmed text.
|
||||||
|
Loading…
Reference in New Issue
Block a user