Twitter: fix problem sending tweets in normal mode

pull/145/head
Tobias Diekershoff 2013-08-04 08:24:32 +02:00
parent d236048406
commit 600b5ce791
1 changed files with 3 additions and 2 deletions

View File

@ -622,11 +622,12 @@ function twitter_post_hook(&$a,&$b) {
} }
$msg = trim($msg); $msg = trim($msg);
} else $image = "";
} else {
$msgarr = twitter_shortenmsg($b); $msgarr = twitter_shortenmsg($b);
$msg = $msgarr["msg"]; $msg = $msgarr["msg"];
$image = $msgarr["image"]; $image = $msgarr["image"];
}
// and now tweet it :-) // and now tweet it :-)
if(strlen($msg) and ($image != "")) { if(strlen($msg) and ($image != "")) {
$img_str = fetch_url($image); $img_str = fetch_url($image);