From f1cf3da6bfbbc8da1430a7f6884d6b2de3184e9d Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 6 Apr 2015 14:01:49 +0200 Subject: [PATCH] fbpost: The privacy check is improved again. --- fbpost/fbpost.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fbpost/fbpost.php b/fbpost/fbpost.php index fe6bd2906..64a2332f8 100644 --- a/fbpost/fbpost.php +++ b/fbpost/fbpost.php @@ -1028,8 +1028,11 @@ function fbpost_fetchwall($a, $uid) { if ($item->application->id == get_config('facebook','appid')) continue; - //if(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ($item->privacy->value !== '')) - if((isset($item->privacy) && ($item->privacy->value !== 'EVERYONE')) OR !isset($item->privacy)) + if(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ((int)$mirror_page == 0)) + continue; + elseif(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ($item->privacy->value !== '')) + continue; + elseif(!isset($item->privacy)) continue; if (($post_to_page != $item->from->id) AND ((int)$post_to_page != 0))