forked from friendica/friendica-addons
Merge pull request #145 from tobiasd/fix_twitter
Twitter: Send tweets in non-optimized mode again
This commit is contained in:
commit
9d8a1d4380
BIN
twitter.tgz
BIN
twitter.tgz
Binary file not shown.
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue