diff options
author | friendica <info@friendica.com> | 2014-07-03 17:26:42 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-03 17:26:42 -0700 |
commit | 06b7aea1a0a240a66a4b224859838174fb6a947e (patch) | |
tree | e1f13661cccf3e06dd84124851a0a37f96e2672c /mod/post.php | |
parent | 1e86a88f0d7e6f6ec3328861de7f17f8d8b77713 (diff) | |
download | volse-hubzilla-06b7aea1a0a240a66a4b224859838174fb6a947e.tar.gz volse-hubzilla-06b7aea1a0a240a66a4b224859838174fb6a947e.tar.bz2 volse-hubzilla-06b7aea1a0a240a66a4b224859838174fb6a947e.zip |
visage tracking opt-in/opt-out
Diffstat (limited to 'mod/post.php')
-rw-r--r-- | mod/post.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/post.php b/mod/post.php index 2b85f3f11..bd68baa17 100644 --- a/mod/post.php +++ b/mod/post.php @@ -780,6 +780,14 @@ function post_post(&$a) { $ret['confirm'] = $confirm; if($u && $u[0]['account_service_class']) $ret['service_class'] = $u[0]['account_service_class']; + + // Set "do not track" flag if this site or this channel's profile is restricted + + if(intval(get_config('system','block_public'))) + $ret['DNT'] = true; + if(! perm_is_allowed($c[0]['channel_id'],'','view_profile')) + $ret['DNT'] = true; + json_return_and_die($ret); } |