mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-16 13:13:53 +00:00
Merge pull request #394 from annando/1612-twitter-media
Twitter: Post links with pictures if available
This commit is contained in:
commit
88075f4f83
1 changed files with 2 additions and 1 deletions
|
@ -494,7 +494,8 @@ function twitter_post_hook(&$a,&$b) {
|
|||
|
||||
if (isset($msgarr["url"]) AND ($msgarr["type"] != "photo"))
|
||||
$msg .= "\n".$msgarr["url"];
|
||||
elseif (isset($msgarr["image"]) AND ($msgarr["type"] != "video"))
|
||||
|
||||
if (isset($msgarr["image"]) AND ($msgarr["type"] != "video"))
|
||||
$image = $msgarr["image"];
|
||||
|
||||
// and now tweet it :-)
|
||||
|
|
Loading…
Reference in a new issue