mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 19:10:15 +00:00
Twitter: fix problem sending tweets in normal mode
This commit is contained in:
parent
d236048406
commit
600b5ce791
1 changed files with 3 additions and 2 deletions
|
@ -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