summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-01-05 16:15:12 -0800
committerBrion Vibber <brion@pobox.com>2010-01-05 16:15:12 -0800
commitbbbec435b02340b38aac8facf90f43868e2af144 (patch)
treeca1111a664458a4c2ee908cd94eda245e17992a8
parenteb22d2d2401293ec87e9fa2c2e7fb053d9780dfd (diff)
Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited)
-rw-r--r--classes/Notice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 6d75cbcad..c2ff7fd09 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.