aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-30 21:00:06 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-30 21:00:06 -0700
commit632c5570086bdfd8c8a311ccec44648697a8ef8b (patch)
tree4b7fea4f6f63938a374677b4a6a775bd15635d70 /mod
parent465ba71b584ad596729c23717226a9bdeb896553 (diff)
downloadvolse-hubzilla-632c5570086bdfd8c8a311ccec44648697a8ef8b.tar.gz
volse-hubzilla-632c5570086bdfd8c8a311ccec44648697a8ef8b.tar.bz2
volse-hubzilla-632c5570086bdfd8c8a311ccec44648697a8ef8b.zip
pubsubhubbub db refinements
Diffstat (limited to 'mod')
-rw-r--r--mod/pubsub.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/pubsub.php b/mod/pubsub.php
index 65705069a..1e6add935 100644
--- a/mod/pubsub.php
+++ b/mod/pubsub.php
@@ -67,7 +67,7 @@ function pubsub_init(&$a) {
if(($hub_mode === 'unsubscribe') && (! strlen($hub_verify)))
hub_return(false, '');
- $r = q("UPDATE `contact` SET `usehub` = %d WHERE `id` = %d LIMIT 1",
+ $r = q("UPDATE `contact` SET `subhub` = %d WHERE `id` = %d LIMIT 1",
intval($subscribe),
intval($contact['id'])
);
@@ -93,7 +93,7 @@ function pubsub_post(&$a) {
$importer = $r[0];
- $r = q("SELECT * FROM `contact` WHERE `usehub` = 1 AND `id` = %d AND `uid` = %d AND `blocked` = 0 LIMIT 1",
+ $r = q("SELECT * FROM `contact` WHERE `subhub` = 1 AND `id` = %d AND `uid` = %d AND `blocked` = 0 LIMIT 1",
intval($contact_id),
intval($importer['uid'])
);