From 93d85858d556e64fa86befa859ee01241a0a2754 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 1 Jan 2013 01:57:20 -0800 Subject: poco discovery --- mod/zfinger.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod/zfinger.php') 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. -- cgit v1.2.3