summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/TwitterBridge/daemons/twitterstatusfetcher.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
index 6f0bddd04..e897cc6ea 100755
--- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
+++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
@@ -274,6 +274,12 @@ class TwitterStatusFetcher extends ParallelizingDaemon
$content = sprintf(_('RT @%1$s %2$s'),
$author->nickname,
$original->content);
+
+ if (Notice::contentTooLong($content)) {
+ $contentlimit = Notice::maxContent();
+ $content = mb_substr($content, 0, $contentlimit - 4) . ' ...';
+ }
+
$repeat = Notice::saveNew($profile->id,
$content,
'twitter',