]> git.mxchange.org Git - friendica-addons.git/commitdiff
fbpost: The privacy check is improved again.
authorMichael Vogel <icarus@dabo.de>
Mon, 6 Apr 2015 12:01:49 +0000 (14:01 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 6 Apr 2015 12:01:49 +0000 (14:01 +0200)
fbpost/fbpost.php

index fe6bd29066f055748f43867a0c1c7faf891714bd..64a2332f8746f256da90c8c746df11ff74bb4ccc 100644 (file)
@@ -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))