]> git.mxchange.org Git - friendica.git/commitdiff
pass params as string rather than array so it doesn't
authorMike Macgirvin <mike@macgirvin.com>
Fri, 1 Oct 2010 05:30:18 +0000 (22:30 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Fri, 1 Oct 2010 05:30:18 +0000 (22:30 -0700)
get changed to multipart/forma-data

include/items.php
include/notifier.php

index d726e961c91d4375961c68b36db2b04603074a7c..2c4b7701476a47155ab88f99a96e66fb1f64527c 100644 (file)
@@ -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),
index b8b07ab5807378774e34335a89aef15a6edf5be7..ee2b22ca3978455372f2eba0734885ff92fd015c 100644 (file)
        }
 
        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);
        }