mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 16:03:15 +00:00
Merge pull request #145 from tobiasd/fix_twitter
Twitter: Send tweets in non-optimized mode again
This commit is contained in:
commit
9d8a1d4380
2 changed files with 3 additions and 2 deletions
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