mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 01:23:41 +00:00
Don't throw error messagesfrom Twitter in the bitbucket
This commit is contained in:
parent
d6fd0c9717
commit
63690167dd
1 changed files with 4 additions and 1 deletions
|
@ -357,7 +357,10 @@ function twitter_post_hook(&$a,&$b) {
|
||||||
// and now tweet it :-)
|
// and now tweet it :-)
|
||||||
if(strlen($msg)) {
|
if(strlen($msg)) {
|
||||||
$result = $tweet->post('statuses/update', array('status' => $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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue