forked from friendica/friendica-addons
fbpost: The privacy check is improved again.
This commit is contained in:
parent
09a3321689
commit
f1cf3da6bf
|
@ -1028,8 +1028,11 @@ function fbpost_fetchwall($a, $uid) {
|
||||||
if ($item->application->id == get_config('facebook','appid'))
|
if ($item->application->id == get_config('facebook','appid'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//if(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ($item->privacy->value !== ''))
|
if(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ((int)$mirror_page == 0))
|
||||||
if((isset($item->privacy) && ($item->privacy->value !== 'EVERYONE')) OR !isset($item->privacy))
|
continue;
|
||||||
|
elseif(isset($item->privacy) && ($item->privacy->value !== 'EVERYONE') && ($item->privacy->value !== ''))
|
||||||
|
continue;
|
||||||
|
elseif(!isset($item->privacy))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (($post_to_page != $item->from->id) AND ((int)$post_to_page != 0))
|
if (($post_to_page != $item->from->id) AND ((int)$post_to_page != 0))
|
||||||
|
|
Loading…
Reference in a new issue