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=8af7ba022681b5a8b9141056055c5bd5c980e3e9;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 299ed696c1..9fa022650f 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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.