From ddc8557b69d46d2268794af456ab2315b4e032a7 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 24 Nov 2014 15:36:11 -0800 Subject: hide online presence maps to DNT --- mod/post.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod/post.php') diff --git a/mod/post.php b/mod/post.php index 47e460f1e..9e818a7e2 100644 --- a/mod/post.php +++ b/mod/post.php @@ -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); -- cgit v1.2.3