mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Hide some profile data if not connected.
This commit is contained in:
parent
5545008768
commit
901b95e935
3 changed files with 19 additions and 0 deletions
|
@ -222,6 +222,13 @@ function notifications_content(&$a) {
|
|||
|
||||
$header .= " (".network_to_name($rr['gnetwork'], $rr['url']).")";
|
||||
|
||||
// Don't show these data until you are connected. Diaspora is doing the same.
|
||||
if($rr['gnetwork'] === NETWORK_DIASPORA) {
|
||||
$rr['glocation'] = "";
|
||||
$rr['gabout'] = "";
|
||||
$rr['ggender'] = "";
|
||||
}
|
||||
|
||||
$notif_content .= replace_macros($tpl, array(
|
||||
'$header' => htmlentities($header),
|
||||
'$str_notifytype' => t('Notification type: '),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue