Twitter+Statusnet: Between message and link there is now a linefeed.

This commit is contained in:
Michael Vogel 2013-07-14 16:26:18 +02:00
parent a00464cd98
commit 37940d0070
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {