aboutsummaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-10 20:46:00 -0700
committerFriendika <info@friendika.com>2011-07-10 20:46:00 -0700
commiteb604deff5da8262f4b32e5a7ac70c9991b0284d (patch)
tree77d1056b427675d21af0956b88b0ff9c67338b66 /addon
parent35edf79abe08bcc1833dc695cb9aebfa5d4a78c0 (diff)
downloadvolse-hubzilla-eb604deff5da8262f4b32e5a7ac70c9991b0284d.tar.gz
volse-hubzilla-eb604deff5da8262f4b32e5a7ac70c9991b0284d.tar.bz2
volse-hubzilla-eb604deff5da8262f4b32e5a7ac70c9991b0284d.zip
log twitter post result
Diffstat (limited to 'addon')
-rw-r--r--addon/twitter/twitter.php7
1 files changed, 5 insertions, 2 deletions
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);
+ }
+
}
}
}