From d48e8bd0a9fd20ac70bd758f8a407b7988155c85 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Dec 2016 08:57:03 +0000 Subject: [PATCH] Twitter: Post links with pictures if available --- twitter/twitter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 :-) -- 2.39.5