]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: The subscribe process took the own contact by random ...
authorMichael Vogel <icarus@dabo.de>
Sat, 12 Dec 2015 16:55:57 +0000 (17:55 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 12 Dec 2015 16:55:57 +0000 (17:55 +0100)
mod/pubsubhubbub.php

index ad75268a9422f674c1d0d64b93e1f80474d2a60a..5d7621cc745fdf648cd1dc79d83342d09ccbe694 100644 (file)
@@ -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.');