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:16:25 -0800
commit8af7ba022681b5a8b9141056055c5bd5c980e3e9 (patch)
tree743ec5768f8fe46ed9f44d1edce74b4fcdb6e2f9
parent92154969029e15673b84f5cc228099f2f5c1b942 (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 299ed696c..9fa022650 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.