hide online presence maps to DNT

This commit is contained in:
friendica
2014-11-24 15:36:11 -08:00
parent 756abd6678
commit ddc8557b69
2 changed files with 6 additions and 3 deletions

View File

@@ -798,6 +798,7 @@ function post_post(&$a) {
$ret['service_class'] = $u[0]['account_service_class'];
// Set "do not track" flag if this site or this channel's profile is restricted
// in some way
if(intval(get_config('system','block_public')))
$ret['DNT'] = true;
@@ -805,6 +806,8 @@ function post_post(&$a) {
$ret['DNT'] = true;
if(get_pconfig($c[0]['channel_id'],'system','do_not_track'))
$ret['DNT'] = true;
if(get_pconfig($c[0]['channel_id'],'system','hide_online_status'))
$ret['DNT'] = true;
json_return_and_die($ret);