aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-02 15:34:35 -0700
committerfriendica <info@friendica.com>2012-11-02 15:34:35 -0700
commitaca2e3b52ae44b5abe2681bc03351feb150e47ef (patch)
treed1112b8a27242a36b033f4c61e32aaec99b31fd0 /include/zot.php
parent78884195bcbf57a9ebf92daf112d9332dbf2707e (diff)
downloadvolse-hubzilla-aca2e3b52ae44b5abe2681bc03351feb150e47ef.tar.gz
volse-hubzilla-aca2e3b52ae44b5abe2681bc03351feb150e47ef.tar.bz2
volse-hubzilla-aca2e3b52ae44b5abe2681bc03351feb150e47ef.zip
add key passing and verification to targeted discovery
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/zot.php b/include/zot.php
index b577493b3..46400f597 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -75,7 +75,6 @@ function zot_notify($channel,$url) {
function zot_finger($webbie,$channel) {
- logger('zot_finger:' . print_r($channel,true));
if(strpos($webbie,'@') === false) {
$address = $webbie;
$host = get_app()->get_hostname();
@@ -105,9 +104,10 @@ function zot_finger($webbie,$channel) {
if($channel) {
$postvars = array(
- 'address' => $address,
- 'target' => $channel['channel_guid'],
- 'target_sig' => $channel['channel_guid_sig']
+ 'address' => $address,
+ 'target' => $channel['channel_guid'],
+ 'target_sig' => $channel['channel_guid_sig'],
+ 'key' => $channel['channel_pubkey']
);
$result = z_post_url($url . $rhs,$postvars);
if(! $result['success'])