mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30: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
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue