]> git.mxchange.org Git - friendica-addons.git/commitdiff
Twitter+Statusnet: Between message and link there is now a linefeed.
authorMichael Vogel <icarus@dabo.de>
Sun, 14 Jul 2013 14:26:18 +0000 (16:26 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 14 Jul 2013 14:26:18 +0000 (16:26 +0200)
statusnet/statusnet.php
twitter/twitter.php

index 2171acf471d712a91bb2317a2046085a0d66d90f..6b4c8010f2411304bba68b0ba8a8e5f70afa48d7 100755 (executable)
@@ -569,7 +569,7 @@ function statusnet_shortenmsg($b, $max_char) {
        while (strpos($msg, "  ") !== false)
                $msg = str_replace("  ", " ", $msg);
 
-       return(array("msg"=>trim($msg." ".$msglink), "image"=>$image));
+       return(array("msg"=>trim($msg."\n".$msglink), "image"=>$image));
 }
 
 function statusnet_post_hook(&$a,&$b) {
index 29f3795b5b8cf675b8591b0f4d7035c77af4e4cd..775072e0bfd846e0fc067b52f234286f9797b40f 100755 (executable)
@@ -452,7 +452,7 @@ function twitter_shortenmsg($b) {
                $msg = str_replace("  ", " ", $msg);
 
        //return(trim($msg." ".$msglink));
-       return(trim($msg." ".$orig_link));
+       return(trim($msg."\n".$orig_link));
 }
 
 function twitter_post_hook(&$a,&$b) {