@ -138,10 +138,12 @@ class TwisterPost
$text .= ' #' . $tagText;
}
if(mb_strlen($text) > $maxLen) {
$text = mb_substr($text, 0, $maxLen + 1);
$pos = mb_strrpos($text, ' ');
$text = mb_substr($text, 0, $pos);
return $text;