truncate retweeted stuff if it's too long
This commit is contained in:
parent
fdcaf7022c
commit
981f6a4749
@ -274,6 +274,12 @@ class TwitterStatusFetcher extends ParallelizingDaemon
|
|||||||
$content = sprintf(_('RT @%1$s %2$s'),
|
$content = sprintf(_('RT @%1$s %2$s'),
|
||||||
$author->nickname,
|
$author->nickname,
|
||||||
$original->content);
|
$original->content);
|
||||||
|
|
||||||
|
if (Notice::contentTooLong($content)) {
|
||||||
|
$contentlimit = Notice::maxContent();
|
||||||
|
$content = mb_substr($content, 0, $contentlimit - 4) . ' ...';
|
||||||
|
}
|
||||||
|
|
||||||
$repeat = Notice::saveNew($profile->id,
|
$repeat = Notice::saveNew($profile->id,
|
||||||
$content,
|
$content,
|
||||||
'twitter',
|
'twitter',
|
||||||
|
Loading…
Reference in New Issue
Block a user