aboutsummaryrefslogtreecommitdiffstats
path: root/include/apps.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/apps.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/apps.php')
-rw-r--r--include/apps.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/apps.php b/include/apps.php
index bd5c50405..135eaa99a 100644
--- a/include/apps.php
+++ b/include/apps.php
@@ -6,6 +6,7 @@
*/
require_once('include/plugin.php');
+require_once('include/identity.php');
function get_system_apps() {
@@ -93,6 +94,10 @@ function parse_app_description($f) {
if(! local_user())
unset($ret);
break;
+ case 'public_profile':
+ if(! is_public_profile())
+ unset($ret);
+ break;
case 'observer':
if(! $observer)
unset($ret);
@@ -189,6 +194,10 @@ function app_render($papp,$mode = 'view') {
if(! local_user())
return '';
break;
+ case 'public_profile':
+ if(! is_public_profile())
+ return '';
+ break;
case 'observer':
$observer = get_app()->get_observer();
if(! $observer)