mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-16 13:28:49 +00:00
Merge 5862b62733
into d236048406
This commit is contained in:
commit
4c6a34c8ee
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);
|
$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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue