]> git.mxchange.org Git - friendica.git/commitdiff
don't notify failed FB delivery of likes, which have no id.
authorFriendika <info@friendika.com>
Fri, 3 Jun 2011 00:41:04 +0000 (17:41 -0700)
committerFriendika <info@friendika.com>
Fri, 3 Jun 2011 00:41:04 +0000 (17:41 -0700)
addon/facebook/facebook.php
boot.php

index 00098a7ddcd62640e6eab9d1c7955da1c0740f69..3cc40330c37bef367dca92b590b01aa20054e296 100644 (file)
@@ -438,7 +438,7 @@ function facebook_post_hook(&$a,&$b) {
                        logger('facebook reply id=' . $reply);
                }
 
-               if($b['private'] && $reply == false) {
+               if($b['private'] && $reply === false) {
                        $allow_people = expand_acl($b['allow_cid']);
                        $allow_groups = expand_groups(expand_acl($b['allow_gid']));
                        $deny_people  = expand_acl($b['deny_cid']);
@@ -636,7 +636,8 @@ function facebook_post_hook(&$a,&$b) {
                                        }
                                        else {
                                                // FIXME queue the message so we can attempt to redeliver, see include/notifier.php and include/queue.php
-                                               notice( t('Facebook delivery failed.') . EOL);
+                                               if(! $likes)
+                                                       notice( t('Facebook delivery failed.') . EOL);
                                        }
                                        
                                        logger('Facebook post returns: ' . $x, LOGGER_DEBUG);
index ea119411e2e58f6c839f6a9db0c61b5724e89954..0af73c4684a33103410e7712ebac674f3f555ca5 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.998' );
+define ( 'FRIENDIKA_VERSION',      '2.2.999' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1059      );