Merge pull request #2174 from annando/1512-ostatus-subscribe

Bugfix: OStatus subscription worked by random until now ...
This commit is contained in:
Tobias Diekershoff 2015-12-13 08:30:43 +01:00
commit 224ff8c132

View 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.');