]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Hide some profile data if not connected.
[friendica.git] / mod / poco.php
index f84fc964d9bf8b2e0ab57e3fef7445f4197eda5a..4d16c6ed29933eca2313942e0fc1d956d24f53aa 100644 (file)
@@ -226,6 +226,13 @@ function poco_init(&$a) {
                                        Cache::set("about:".$rr['updated'].":".$rr['nurl'],$about);
                                }
 
+                               // Non connected persons can only see the keywords of a Diaspora account
+                               if ($rr['network'] == NETWORK_DIASPORA) {
+                                       $rr['location'] = "";
+                                       $about = "";
+                                       $rr['gender'] = "";
+                               }
+
                                $entry = array();
                                if($fields_ret['id'])
                                        $entry['id'] = (int)$rr['id'];