mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 07:23:40 +00:00
Merge pull request #252 from annando/1504-improved-privacy-check
fbpost: The privacy check is improved again.
This commit is contained in:
commit
a5914c2c60
1 changed files with 5 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue