]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix notice in Twitter addon
authorMichael <heluecht@pirati.ca>
Sat, 21 Sep 2019 14:53:54 +0000 (14:53 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 21 Sep 2019 14:53:54 +0000 (14:53 +0000)
twitter/twitter.php

index 176cb22b8102452603dbb26b0a7aa5033b63df0e..a43e83587725e31dd4d56c312a95e51ccc300402 100644 (file)
@@ -630,7 +630,7 @@ function twitter_post_hook(App $a, array &$b)
                        $msg = Plaintext::shorten($msgarr["title"], $max_char - 50);
                }
 
-               if (($msgarr['url'] == $b['plink']) && !empty($msgarr['images']) && (count($msgarr['images']) <= 4)) {
+               if (!empty($msgarr['url']) && ($msgarr['url'] == $b['plink']) && !empty($msgarr['images']) && (count($msgarr['images']) <= 4)) {
                        $url_added = false;
                } elseif (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {
                        $msg .= "\n" . $msgarr["url"];