]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsub.php
Database stuff. New table "thread". Changing "left join" to "inner join", removing...
[friendica.git] / mod / pubsub.php
index 7aa95e49c0db7200b10953e7283509e2ebafd772..3d8bfca48e39a5db21e6384b2897cf5c31877530 100644 (file)
@@ -79,18 +79,18 @@ function pubsub_init(&$a) {
 
                if($hub_mode === 'unsubscribe') {
                        if(! strlen($hub_verify)) {
-                               logger('pubsub: bogus unsubscribe'); 
+                               logger('pubsub: bogus unsubscribe');
                                hub_return(false, '');
                        }
                        logger('pubsub: unsubscribe success');
                }
 
-               $r = q("UPDATE `contact` SET `subhub` = %d WHERE `id` = %d LIMIT 1",
+               $r = q("UPDATE `contact` SET `subhub` = %d WHERE `id` = %d",
                        intval($subscribe),
                        intval($contact['id'])
                );
 
-               hub_return(true, $hub_challenge);               
+               hub_return(true, $hub_challenge);
        }
 }