]> git.mxchange.org Git - friendica.git/commitdiff
FB reply if replying to local post originally posted to FB
authorFriendika <info@friendika.com>
Sat, 14 May 2011 03:40:28 +0000 (20:40 -0700)
committerFriendika <info@friendika.com>
Sat, 14 May 2011 03:40:28 +0000 (20:40 -0700)
addon/facebook/facebook.php
boot.php

index 91e68abd334ac108dc7e8d03c7d1ada37ce21eab..ab4827e6ed7a0f6e126e18c6be65cabbde1cf076 100644 (file)
@@ -389,6 +389,8 @@ function facebook_post_hook(&$a,&$b) {
                        );
                        if(count($r) && substr($r[0]['uri'],0,4) === 'fb::')
                                $reply = substr($r[0]['uri'],4);
+                       elseif(count($r) && substr($r[0]['extid'],0,4) === 'fb::')
+                               $reply = substr($r[0]['extid'],4);
                        else
                                return;
                        logger('facebook reply id=' . $reply);
index 94ed4d19ff02abde2d6b7171b9b81e49a739b0b3..eb70dd8f601775065907f3495e92d95a6817be3c 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.978' );
+define ( 'FRIENDIKA_VERSION',      '2.2.979' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1054      );