Merge pull request #12380 from annando/parts
Fix "part" calculation for split posts
This commit is contained in:
commit
0a296c3f02
|
@ -303,7 +303,7 @@ class Plaintext
|
|||
$limit += mb_strlen(trim($word)) - self::URL_LENGTH;
|
||||
}
|
||||
|
||||
if ((mb_strlen($part . $word) > $limit - 8) && (mb_strlen($part . $word . $message) > $limit)) {
|
||||
if ((mb_strlen($part . $word) > $limit - 8) && ($parts || (mb_strlen($part . $word . $message) > $limit))) {
|
||||
$parts[] = trim($part);
|
||||
$part = '';
|
||||
$limit = $baselimit;
|
||||
|
|
Loading…
Reference in a new issue