Merge pull request #54 from mexon/upstream

Don't throw error messagesfrom Twitter in the bitbucket
pull/55/head
friendica 2012-05-14 20:11:01 -07:00
commit cb7d832237
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}
}
}