From: Michael Vogel Date: Sat, 12 Dec 2015 16:55:57 +0000 (+0100) Subject: Bugfix: The subscribe process took the own contact by random ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a1041578cdbb1cf9921392c333c14efd6b7e937;p=friendica.git Bugfix: The subscribe process took the own contact by random ... --- diff --git a/mod/pubsubhubbub.php b/mod/pubsubhubbub.php index ad75268a94..5d7621cc74 100644 --- a/mod/pubsubhubbub.php +++ b/mod/pubsubhubbub.php @@ -70,8 +70,8 @@ function pubsubhubbub_init(&$a) { } // get corresponding row from contact table - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `blocked` = 0" . - " AND `pending` = 0 LIMIT 1", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND NOT `blocked`". + " AND NOT `pending` AND `self` LIMIT 1", intval($owner['uid'])); if(!count($r)) { logger('pubsubhubbub: contact not found.');