From 7942192e2089224544c6fa55f64a77fbbf1e6281 Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 13 May 2011 20:40:28 -0700 Subject: [PATCH] FB reply if replying to local post originally posted to FB --- addon/facebook/facebook.php | 2 ++ boot.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 91e68abd..ab4827e6 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -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); diff --git a/boot.php b/boot.php index 94ed4d19..eb70dd8f 100644 --- 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 );