Browse Source

Merge pull request #394 from annando/1612-twitter-media

Twitter: Post links with pictures if available
pull/395/head
Tobias Diekershoff 5 years ago
committed by GitHub
parent
commit
88075f4f83
  1. 3
      twitter/twitter.php

3
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 :-)

Loading…
Cancel
Save