Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited)
This commit is contained in:
parent
eb22d2d240
commit
bbbec435b0
@ -1371,7 +1371,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…
x
Reference in New Issue
Block a user