From: Michael Date: Tue, 13 Dec 2016 08:57:03 +0000 (+0000) Subject: Twitter: Post links with pictures if available X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d48e8bd0a9fd20ac70bd758f8a407b7988155c85;p=friendica-addons.git Twitter: Post links with pictures if available --- diff --git a/twitter/twitter.php b/twitter/twitter.php index 253ed4ab..c37da053 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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 :-)