don't reply to remote facebook conversations if linking is disabled
This commit is contained in:
parent
9161d1832e
commit
a6edf2f71c
1 changed files with 3 additions and 1 deletions
|
@ -488,7 +488,9 @@ function facebook_post_hook(&$a,&$b) {
|
||||||
if($b['prvnets'] && $b['private'])
|
if($b['prvnets'] && $b['private'])
|
||||||
return;
|
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",
|
$r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||||
intval($b['parent']),
|
intval($b['parent']),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
|
|
Loading…
Reference in a new issue