]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Twitter: Post links with pictures if available
[friendica-addons.git] / twitter / twitter.php
index 253ed4ab1a2db4386f37a8762747e9490f2292b4..c37da0532b210b1a48e63beb14df799dec6b63c3 100644 (file)
@@ -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 :-)