aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-30 22:30:18 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-30 22:30:18 -0700
commit2ae38e3fbffe2f51fc1dc56e398625e3cebb667c (patch)
tree61d6ab6be83bc76a1a3a70d6694c28205b14124a /include/items.php
parent0d2650b29b92943a1570896491865c12fd28fda8 (diff)
downloadvolse-hubzilla-2ae38e3fbffe2f51fc1dc56e398625e3cebb667c.tar.gz
volse-hubzilla-2ae38e3fbffe2f51fc1dc56e398625e3cebb667c.tar.bz2
volse-hubzilla-2ae38e3fbffe2f51fc1dc56e398625e3cebb667c.zip
pass params as string rather than array so it doesn't
get changed to multipart/forma-data
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php8
1 files changed, 1 insertions, 7 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),