]> git.mxchange.org Git - friendica-addons.git/commitdiff
Don't throw error messagesfrom Twitter in the bitbucket
authorMatthew Exon <github.mexon@spamgourmet.com>
Sun, 13 May 2012 06:48:25 +0000 (08:48 +0200)
committerMatthew Exon <git.mexon@spamgourmet.com>
Tue, 15 May 2012 01:30:31 +0000 (09:30 +0800)
twitter/twitter.php

index 978cc039f506a9b9f96baf5957c13d6b2b80ccda..0a609b05bb4cdc3c7a534ee11fb46967bc7498a4 100755 (executable)
@@ -357,7 +357,10 @@ function twitter_post_hook(&$a,&$b) {
                // and now tweet it :-)
                if(strlen($msg)) {
                        $result = $tweet->post('statuses/update', array('status' => $msg));
-                       logger('twitter_post send' , LOGGER_DEBUG);
+                       logger('twitter_post send, result: ' . print_r($result, true), LOGGER_DEBUG);
+                       if ($result->error) {
+                               logger('Send to Twitter failed: "' . $result->error . '"', LOGGER_ERROR);
+                       }
                }
        }
 }