Twitter+Statusnet: Between message and link there is now a linefeed.
parent
a00464cd98
commit
37940d0070
|
@ -569,7 +569,7 @@ function statusnet_shortenmsg($b, $max_char) {
|
||||||
while (strpos($msg, " ") !== false)
|
while (strpos($msg, " ") !== false)
|
||||||
$msg = str_replace(" ", " ", $msg);
|
$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) {
|
function statusnet_post_hook(&$a,&$b) {
|
||||||
|
|
|
@ -452,7 +452,7 @@ function twitter_shortenmsg($b) {
|
||||||
$msg = str_replace(" ", " ", $msg);
|
$msg = str_replace(" ", " ", $msg);
|
||||||
|
|
||||||
//return(trim($msg." ".$msglink));
|
//return(trim($msg." ".$msglink));
|
||||||
return(trim($msg." ".$orig_link));
|
return(trim($msg."\n".$orig_link));
|
||||||
}
|
}
|
||||||
|
|
||||||
function twitter_post_hook(&$a,&$b) {
|
function twitter_post_hook(&$a,&$b) {
|
||||||
|
|
Loading…
Reference in New Issue