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/apps.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/apps.php') 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) -- cgit v1.2.3