truncate retweeted stuff if it's too long
This commit is contained in:
parent
9847bffe99
commit
702d36257c
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user