aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-03 17:26:42 -0700
committerfriendica <info@friendica.com>2014-07-03 17:26:42 -0700
commit06b7aea1a0a240a66a4b224859838174fb6a947e (patch)
treee1f13661cccf3e06dd84124851a0a37f96e2672c /include/identity.php
parent1e86a88f0d7e6f6ec3328861de7f17f8d8b77713 (diff)
downloadvolse-hubzilla-06b7aea1a0a240a66a4b224859838174fb6a947e.tar.gz
volse-hubzilla-06b7aea1a0a240a66a4b224859838174fb6a947e.tar.bz2
volse-hubzilla-06b7aea1a0a240a66a4b224859838174fb6a947e.zip
visage tracking opt-in/opt-out
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php12
1 files changed, 12 insertions, 0 deletions
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;
+}