Merge pull request #145 from tobiasd/fix_twitter

Twitter: Send tweets in non-optimized mode again
This commit is contained in:
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); $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);