]> git.mxchange.org Git - friendica.git/blobdiff - mod/network.php
Merge remote-tracking branch 'friendika-master/master' into iconpopup
[friendica.git] / mod / network.php
index 13ce81abc8eed22a6adfc5ca89818f0d00a47bab..42c6c0c29e56e4ef971e8d5839c093d236a862ef 100644 (file)
@@ -54,6 +54,14 @@ function network_content(&$a, $update = 0) {
        }
 
        if(! $update) {
+               if(group) {
+                       if(($t = group_public_members($group)) && (! get_pconfig(local_user(),'system','nowarn_insecure'))) {
+                               $plural_form = sprintf( tt('%d member', '%d members', $t), $t);
+                               notice( sprintf( t('Warning: This group contains %s from an insecure network.'), $plural_form ) . EOL);
+                               notice( t('Private messages to this group are at risk of public disclosure.') . EOL);
+                       }
+               }
+
                $o .= '<script> $(document).ready(function() { $(\'#nav-network-link\').addClass(\'nav-selected\'); });</script>';
 
                $_SESSION['return_url'] = $a->cmd;