Merge pull request #145 from tobiasd/fix_twitter

Twitter: Send tweets in non-optimized mode again
pull/146/merge
tobiasd 2013-08-03 23:35:39 -07:00
commit 9d8a1d4380
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

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