1
0
Fork 0

Fix "part" calculation for splitted posts

This commit is contained in:
Michael 2022-12-10 21:23:21 +00:00
parent 106dac5508
commit 539ac4f2b8

View file

@ -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;