diff options
author | friendica <info@friendica.com> | 2013-01-01 01:57:20 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-01 01:57:20 -0800 |
commit | 93d85858d556e64fa86befa859ee01241a0a2754 (patch) | |
tree | 452c7c63e3555794458e2af8090197f9b49837be /mod | |
parent | 6accc190d4041c1dd859f36560f93a019ce197ee (diff) | |
download | volse-hubzilla-93d85858d556e64fa86befa859ee01241a0a2754.tar.gz volse-hubzilla-93d85858d556e64fa86befa859ee01241a0a2754.tar.bz2 volse-hubzilla-93d85858d556e64fa86befa859ee01241a0a2754.zip |
poco discovery
Diffstat (limited to 'mod')
-rw-r--r-- | mod/zfinger.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php index d9fe91765..b1de33fb7 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -118,11 +118,14 @@ function zfinger_init(&$a) { $ret['photo'] = $e['xchan_photo_l']; $ret['photo_updated'] = $e['xchan_photo_date']; $ret['url'] = $e['xchan_url']; + $ret['connections_url']= (($e['xchan_connurl']) ? $e['xchan_connurl'] : z_root() . '/poco/' . $e['channel_address']); $ret['name_updated'] = $e['xchan_name_date']; $ret['target'] = $ztarget; $ret['target_sig'] = $zsig; $ret['searchable'] = $searchable; + if(! $e['xchan_connurl']) + // 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. |