commit
1ae9cc282f
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sengi",
|
"name": "sengi",
|
||||||
"version": "0.30.0",
|
"version": "0.30.1",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"main": "main-electron.js",
|
"main": "main-electron.js",
|
||||||
"description": "A multi-account desktop client for Mastodon and Pleroma",
|
"description": "A multi-account desktop client for Mastodon and Pleroma",
|
||||||
|
|
|
@ -649,6 +649,11 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
while (trucatedStatus.length > currentMaxCharLength) {
|
while (trucatedStatus.length > currentMaxCharLength) {
|
||||||
const nextIndex = trucatedStatus.lastIndexOf(' ', maxChars);
|
const nextIndex = trucatedStatus.lastIndexOf(' ', maxChars);
|
||||||
|
|
||||||
|
if(nextIndex === -1){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
results.push(trucatedStatus.substr(0, nextIndex) + ' (...)');
|
results.push(trucatedStatus.substr(0, nextIndex) + ' (...)');
|
||||||
trucatedStatus = aggregateMention + trucatedStatus.substr(nextIndex + 1);
|
trucatedStatus = aggregateMention + trucatedStatus.substr(nextIndex + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue