aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zfinger.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-03 19:34:04 -0800
committerfriendica <info@friendica.com>2013-01-03 19:34:04 -0800
commitbec7d9f483d63a2330694cc34377b0f79d1afcba (patch)
treed3f7ac3ad142dcd1002972899e63013a64f81f61 /mod/zfinger.php
parentcf0e960a90cf4216d85d38d23d147cb62cd70644 (diff)
downloadvolse-hubzilla-bec7d9f483d63a2330694cc34377b0f79d1afcba.tar.gz
volse-hubzilla-bec7d9f483d63a2330694cc34377b0f79d1afcba.tar.bz2
volse-hubzilla-bec7d9f483d63a2330694cc34377b0f79d1afcba.zip
temporary feed import/export (public only for the moment) until this is integrated with remote permissions
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r--mod/zfinger.php21
1 files changed, 14 insertions, 7 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index b13af50b7..32523ecac 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -7,13 +7,15 @@ function zfinger_init(&$a) {
$ret = array('success' => false);
- $zhash = ((x($_REQUEST,'guid_hash')) ? $_REQUEST['guid_hash'] : '');
- $zguid = ((x($_REQUEST,'guid')) ? $_REQUEST['guid'] : '');
- $zguid_sig = ((x($_REQUEST,'guid_sig')) ? $_REQUEST['guid_sig'] : '');
- $zaddr = ((x($_REQUEST,'address')) ? $_REQUEST['address'] : '');
- $ztarget = ((x($_REQUEST,'target')) ? $_REQUEST['target'] : '');
- $zsig = ((x($_REQUEST,'target_sig')) ? $_REQUEST['target_sig'] : '');
- $zkey = ((x($_REQUEST,'key')) ? $_REQUEST['key'] : '');
+ $zhash = ((x($_REQUEST,'guid_hash')) ? $_REQUEST['guid_hash'] : '');
+ $zguid = ((x($_REQUEST,'guid')) ? $_REQUEST['guid'] : '');
+ $zguid_sig = ((x($_REQUEST,'guid_sig')) ? $_REQUEST['guid_sig'] : '');
+ $zaddr = ((x($_REQUEST,'address')) ? $_REQUEST['address'] : '');
+ $ztarget = ((x($_REQUEST,'target')) ? $_REQUEST['target'] : '');
+ $zsig = ((x($_REQUEST,'target_sig')) ? $_REQUEST['target_sig'] : '');
+ $zkey = ((x($_REQUEST,'key')) ? $_REQUEST['key'] : '');
+ $mindate = ((x($_REQUEST,'mindate')) ? $_REQUEST['mindate'] : '');
+ $feed = ((x($_REQUEST,'feed')) ? intval($_REQUEST['feed']) : 0);
if($ztarget) {
if((! $zkey) || (! $zsig) || (! rsa_verify($ztarget,base64url_decode($zsig),$zkey))) {
@@ -139,6 +141,11 @@ function zfinger_init(&$a) {
if($permissions['view_profile'])
$ret['profile'] = $profile;
+// if($feed && $permissions['view_stream'])
+// $ret['messages'] = $zot_feed($e['channel_id'],(($ztarget && $zsig)
+// ? base64url_encode(hash('whirlpool',$ztarget . $zsig,true))
+// : '' ),$mindate);
+
// array of (verified) hubs this channel uses
$ret['locations'] = array();