mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:00:20 +00:00
Fix "part" calculation for splitted posts
This commit is contained in:
parent
106dac5508
commit
539ac4f2b8
1 changed files with 1 additions and 1 deletions
|
@ -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