]> git.mxchange.org Git - friendica.git/commitdiff
log twitter post result
authorFriendika <info@friendika.com>
Mon, 11 Jul 2011 03:46:00 +0000 (20:46 -0700)
committerFriendika <info@friendika.com>
Mon, 11 Jul 2011 03:46:00 +0000 (20:46 -0700)
addon/twitter/twitter.php
boot.php

index 1dce9d2f66a38b5b0b6b28f1ec55742504b33442..7f2b2e1c79362184686341a8d25f091ac5fdeada 100644 (file)
@@ -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);
+                               }
+
                        }
                }
        }
index 3f64310fc491d37af2cfa08b230bb8e42ee6450b..0a98399cd495afc41c86105d643d50bcf7ccf3c9 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
 ini_set('pcre.backtrack_limit', 250000);
 
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1036' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1037' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1075      );