]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
fbpost: Posting to groups enabled
[friendica-addons.git] / twitter / twitter.php
index 3fcaa1de33517e47d67fc3334e49a42cf073b9ca..6a93d9f15303c059c6928d0e14b0b193285afc60 100755 (executable)
@@ -354,7 +354,7 @@ function twitter_shortenmsg($b) {
                $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)."...";
        }