X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fpubsubhubbub.php;h=5d7621cc745fdf648cd1dc79d83342d09ccbe694;hb=bfdbc0c81821f48a5d7965fde3fae8127ee87084;hp=ad75268a9422f674c1d0d64b93e1f80474d2a60a;hpb=0869cce45f18891a12ae09a60cb18fb7b6b2ecd0;p=friendica.git 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.');