From: Tobias Diekershoff Date: Sun, 4 Aug 2013 06:24:32 +0000 (+0200) Subject: Twitter: fix problem sending tweets in normal mode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=600b5ce7912bedca14dc1dae7c382e9fbd463f55;p=friendica-addons.git Twitter: fix problem sending tweets in normal mode --- diff --git a/twitter/twitter.php b/twitter/twitter.php index bd9eb18c..7dd083ea 100755 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -622,11 +622,12 @@ function twitter_post_hook(&$a,&$b) { } $msg = trim($msg); - } else + $image = ""; + } else { $msgarr = twitter_shortenmsg($b); $msg = $msgarr["msg"]; $image = $msgarr["image"]; - + } // and now tweet it :-) if(strlen($msg) and ($image != "")) { $img_str = fetch_url($image);