diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/items.php | 8 | ||||
-rw-r--r-- | include/notifier.php | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/include/items.php b/include/items.php index d726e961c..2c4b77014 100644 --- a/include/items.php +++ b/include/items.php @@ -827,17 +827,11 @@ function subscribe_to_hub($url,$importer,$contact) { if(! count($r)) return; - $params = array(); - $push_url = get_config('system','url') . '/pubsub/' . $r[0]['nickname'] . '/' . $contact['id']; $verify_token = random_string(); - $params['hub.mode'] = 'subscribe'; - $params['hub.callback'] = urlencode($push_url); - $params['hub.topic'] = urlencode($contact['poll']); - $params['hub.verify'] = 'async'; - $params['hub.verify_token'] = $verify_token; + $params= 'hub.mode=subscribe&hub.callback=' . urlencode($push_url) . '&hub.topic=' . urlencode($contact['poll']) . '&hub.verify=async&hub.verify_token=' . $verify_token; $r = q("UPDATE `contact` SET `hub-verify` = '%s' WHERE `id` = %d LIMIT 1", dbesc($verify_token), diff --git a/include/notifier.php b/include/notifier.php index b8b07ab58..ee2b22ca3 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -303,7 +303,7 @@ } if((strlen($hub)) && ($cmd !== 'mail') && (followup == false)) { - $params = array('hub.mode' => 'publish', 'hub.url' => urlencode($a->get_baseurl() . '/dfrn_poll/' . $owner['nickname'] )); + $params = 'hub.mode=publish&hub.url=' . urlencode($a->get_baseurl() . '/dfrn_poll/' . $owner['nickname'] ); post_url($hub,$params); } |