From: Brion Vibber Date: Wed, 6 Jan 2010 00:15:12 +0000 (-0800) Subject: Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bbbec435b02340b38aac8facf90f43868e2af144;p=quix0rs-gnu-social.git Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited) --- diff --git a/classes/Notice.php b/classes/Notice.php index 6d75cbcade..c2ff7fd09c 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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.