summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-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.