]> git.mxchange.org Git - friendica-addons.git/commitdiff
Twitter: Post links with pictures if available
authorMichael <heluecht@pirati.ca>
Tue, 13 Dec 2016 08:57:03 +0000 (08:57 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 13 Dec 2016 08:57:03 +0000 (08:57 +0000)
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 :-)