From eb604deff5da8262f4b32e5a7ac70c9991b0284d Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 10 Jul 2011 20:46:00 -0700 Subject: log twitter post result --- addon/twitter/twitter.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'addon/twitter/twitter.php') diff --git a/addon/twitter/twitter.php b/addon/twitter/twitter.php index 1dce9d2f6..7f2b2e1c7 100644 --- a/addon/twitter/twitter.php +++ b/addon/twitter/twitter.php @@ -243,8 +243,11 @@ function twitter_post_hook(&$a,&$b) { $msg .= '... ' . $shortlink; } // and now tweet it :-) - if(strlen($msg)) - $tweet->post('statuses/update', array('status' => $msg)); + if(strlen($msg)) { + $result = $tweet->post('statuses/update', array('status' => $msg)); + logger('twitter_post returns: ' . $result); + } + } } } -- cgit v1.2.3