]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited)
authorBrion Vibber <brion@pobox.com>
Wed, 6 Jan 2010 00:15:12 +0000 (16:15 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 6 Jan 2010 00:15:12 +0000 (16:15 -0800)
classes/Notice.php

index 6d75cbcade56f4f1a2b600df9cf70430d9f5a154..c2ff7fd09cffb5f18911d62bbbd51a23c3294c6c 100644 (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.