From d7c23be8c9312e002e4a5e0b68ab669f1aadcf55 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 19 Dec 2012 22:45:49 -0800 Subject: some changes for directory services --- mod/zfinger.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/zfinger.php') diff --git a/mod/zfinger.php b/mod/zfinger.php index e1afdeba4..f00819522 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -58,6 +58,9 @@ function zfinger_init(&$a) { $id = $e['channel_id']; + $searchable = (($e['channel_pageflags'] & PAGE_HIDDEN) ? false : true); + + // This is for birthdays and keywords, but must check access permissions // $r = q("select contact.*, profile.* // from contact left join profile on contact.uid = profile.uid @@ -86,6 +89,7 @@ function zfinger_init(&$a) { $ret['name_updated'] = $e['xchan_name_date']; $ret['target'] = $ztarget; $ret['target_sig'] = $zsig; + $ret['searchable'] = $searchable; // FIXME encrypt permissions when targeted so that only the target can view them, requires sending the pubkey and also checking that the target_sig is signed with that pubkey and isn't a forgery. -- cgit v1.2.3