diff options
author | Friendika <info@friendika.com> | 2011-09-21 18:02:54 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-21 18:02:54 -0700 |
commit | a6edf2f71cdb8640ad9f9bee3f237684bd8530db (patch) | |
tree | b440dcae615c310f32fcbbac046b03749147c747 /addon | |
parent | 9161d1832ee60aa177d8d66352de40e9aab901b6 (diff) | |
download | volse-hubzilla-a6edf2f71cdb8640ad9f9bee3f237684bd8530db.tar.gz volse-hubzilla-a6edf2f71cdb8640ad9f9bee3f237684bd8530db.tar.bz2 volse-hubzilla-a6edf2f71cdb8640ad9f9bee3f237684bd8530db.zip |
don't reply to remote facebook conversations if linking is disabled
Diffstat (limited to 'addon')
-rw-r--r-- | addon/facebook/facebook.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 3268cb254..37f26807c 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()) |