mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
fbpost: Posting to groups enabled
twitter/statusnet: Bug fixed where messages were shortened too much.
This commit is contained in:
parent
84c8c4f002
commit
50c33d8dc2
3 changed files with 18 additions and 6 deletions
|
@ -495,7 +495,7 @@ function statusnet_shortenmsg($b, $max_char) {
|
|||
$msg = substr($msg, 0, -1);
|
||||
$pos = strrpos($msg, "\n");
|
||||
if ($pos > 0)
|
||||
$msg = substr($msg, 0, $pos-1);
|
||||
$msg = substr($msg, 0, $pos);
|
||||
else if ($lastchar != "\n")
|
||||
$msg = substr($msg, 0, -3)."...";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue