From: Friendika Date: Thu, 22 Sep 2011 01:02:54 +0000 (-0700) Subject: don't reply to remote facebook conversations if linking is disabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6edf2f71cdb8640ad9f9bee3f237684bd8530db;p=friendica.git don't reply to remote facebook conversations if linking is disabled --- diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 3268cb254f..37f26807c9 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -488,7 +488,9 @@ function facebook_post_hook(&$a,&$b) { if($b['prvnets'] && $b['private']) return; - if($b['parent']) { + $linking = ((get_pconfig(local_user(),'facebook','no_linking')) ? 0 : 1); + + if(($b['parent']) && ($linking)) { $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($b['parent']), intval(local_user())