diff options
author | friendica <info@friendica.com> | 2012-12-19 22:45:49 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-19 22:45:49 -0800 |
commit | d7c23be8c9312e002e4a5e0b68ab669f1aadcf55 (patch) | |
tree | 40d19525dd497848df6bb76fe5d1918e8fb9cfc3 /mod/zfinger.php | |
parent | ad20e1f617c7e26585153b587eb9a85fc958794b (diff) | |
download | volse-hubzilla-d7c23be8c9312e002e4a5e0b68ab669f1aadcf55.tar.gz volse-hubzilla-d7c23be8c9312e002e4a5e0b68ab669f1aadcf55.tar.bz2 volse-hubzilla-d7c23be8c9312e002e4a5e0b68ab669f1aadcf55.zip |
some changes for directory services
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r-- | mod/zfinger.php | 4 |
1 files changed, 4 insertions, 0 deletions
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. |