Fix "part" calculation for splitted posts
This commit is contained in:
parent
106dac5508
commit
539ac4f2b8
|
@ -303,7 +303,7 @@ class Plaintext
|
||||||
$limit += mb_strlen(trim($word)) - self::URL_LENGTH;
|
$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);
|
$parts[] = trim($part);
|
||||||
$part = '';
|
$part = '';
|
||||||
$limit = $baselimit;
|
$limit = $baselimit;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user