From 632c5570086bdfd8c8a311ccec44648697a8ef8b Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 30 Sep 2010 21:00:06 -0700 Subject: pubsubhubbub db refinements --- mod/pubsub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/pubsub.php') 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']) ); -- cgit v1.2.3