visage tracking opt-in/opt-out

This commit is contained in:
friendica
2014-07-03 17:26:42 -07:00
parent 1e86a88f0d
commit 06b7aea1a0
3 changed files with 29 additions and 0 deletions

View File

@@ -1300,3 +1300,15 @@ function identity_selector() {
return '';
}
function is_public_profile() {
if(! local_user())
return false;
if(intval(get_config('system','block_public')))
return false;
$channel = get_app()->get_channel();
if($channel && $channel['channel_r_profile'] == PERMS_PUBLIC)
return true;
return false;
}