Browse Source

Bugfix: The subscribe process took the own contact by random ...

pull/2174/head
Michael Vogel 5 years ago
parent
commit
5a1041578c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mod/pubsubhubbub.php

+ 2
- 2
mod/pubsubhubbub.php 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.');


Loading…
Cancel
Save