mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
Improvement for shortening of the new plaintext option.
This commit is contained in:
parent
35fbe3be14
commit
7cc2723e2d
2 changed files with 6 additions and 4 deletions
|
@ -168,6 +168,8 @@ function plaintext($a, $b, $limit = 0, $includedlinks = false) {
|
|||
// Is the new message empty by now or is it a reshared message?
|
||||
elseif (($msg == "") OR (($row == 1) AND (substr($msg, 0, 4) == $recycle)))
|
||||
$msg = substr(substr(trim($msg."\n".$line), 0, $limit), 0, -3)."...";
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue