forked from friendica/friendica-addons
Twitter: Post links with pictures if available
This commit is contained in:
parent
6eee37e193
commit
d48e8bd0a9
|
@ -494,7 +494,8 @@ function twitter_post_hook(&$a,&$b) {
|
||||||
|
|
||||||
if (isset($msgarr["url"]) AND ($msgarr["type"] != "photo"))
|
if (isset($msgarr["url"]) AND ($msgarr["type"] != "photo"))
|
||||||
$msg .= "\n".$msgarr["url"];
|
$msg .= "\n".$msgarr["url"];
|
||||||
elseif (isset($msgarr["image"]) AND ($msgarr["type"] != "video"))
|
|
||||||
|
if (isset($msgarr["image"]) AND ($msgarr["type"] != "video"))
|
||||||
$image = $msgarr["image"];
|
$image = $msgarr["image"];
|
||||||
|
|
||||||
// and now tweet it :-)
|
// and now tweet it :-)
|
||||||
|
|
Loading…
Reference in a new issue