projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0869cce
)
Bugfix: The subscribe process took the own contact by random ...
author
Michael Vogel
<icarus@dabo.de>
Sat, 12 Dec 2015 16:55:57 +0000
(17:55 +0100)
committer
Michael Vogel
<icarus@dabo.de>
Sat, 12 Dec 2015 16:55:57 +0000
(17:55 +0100)
mod/pubsubhubbub.php
patch
|
blob
|
history
diff --git
a/mod/pubsubhubbub.php
b/mod/pubsubhubbub.php
index ad75268a9422f674c1d0d64b93e1f80474d2a60a..5d7621cc745fdf648cd1dc79d83342d09ccbe694 100644
(file)
--- 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.');