]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
Hide some profile data if not connected.
[friendica.git] / mod / notifications.php
index 69ab592afe276d8640c47f936857f1ffbcb9dba8..6c0391e4e9a9fd57049e7ec433d0012ee158e6fc 100644 (file)
@@ -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: '),