From 06b7aea1a0a240a66a4b224859838174fb6a947e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 3 Jul 2014 17:26:42 -0700 Subject: visage tracking opt-in/opt-out --- include/identity.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 1cbe43b1e..6c28f23d6 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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; +} -- cgit v1.2.3