fbpost: Posting to groups enabled

twitter/statusnet: Bug fixed where messages were shortened too much.
This commit is contained in:
Michael Vogel 2012-11-22 03:31:43 +01:00
parent 84c8c4f002
commit 50c33d8dc2
3 changed files with 18 additions and 6 deletions

View file

@ -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)."...";
}