Merge pull request #2174 from annando/1512-ostatus-subscribe
Bugfix: OStatus subscription worked by random until now ...
This commit is contained in:
commit
224ff8c132
1 changed files with 8 additions and 8 deletions
|
@ -70,8 +70,8 @@ function pubsubhubbub_init(&$a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get corresponding row from contact table
|
// get corresponding row from contact table
|
||||||
$r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `blocked` = 0" .
|
$r = q("SELECT * FROM `contact` WHERE `uid` = %d AND NOT `blocked`".
|
||||||
" AND `pending` = 0 LIMIT 1",
|
" AND NOT `pending` AND `self` LIMIT 1",
|
||||||
intval($owner['uid']));
|
intval($owner['uid']));
|
||||||
if(!count($r)) {
|
if(!count($r)) {
|
||||||
logger('pubsubhubbub: contact not found.');
|
logger('pubsubhubbub: contact not found.');
|
||||||
|
|
Loading…
Reference in a new issue