From: Michael Vogel Date: Sun, 14 Jul 2013 14:26:18 +0000 (+0200) Subject: Twitter+Statusnet: Between message and link there is now a linefeed. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37940d007028a0233f13da9c65eddccdc8575e3e;p=friendica-addons.git Twitter+Statusnet: Between message and link there is now a linefeed. --- diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 2171acf4..6b4c8010 100755 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -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) { diff --git a/twitter/twitter.php b/twitter/twitter.php index 29f3795b..775072e0 100755 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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) {