add pubsubhubbub support to feed contacts

This commit is contained in:
Fabrixxm 2013-06-27 09:51:13 -04:00
parent bb59c9c32a
commit 0a1697d13a
2 changed files with 9 additions and 4 deletions

View file

@ -121,11 +121,12 @@ function pubsub_post(&$a) {
$importer = $r[0];
$r = q("SELECT * FROM `contact` WHERE `subhub` = 1 AND `id` = %d AND `uid` = %d
AND ( `rel` = %d OR `rel` = %d ) AND `blocked` = 0 AND `readonly` = 0 LIMIT 1",
AND ( `rel` = %d OR `rel` = %d OR network = '%s' ) AND `blocked` = 0 AND `readonly` = 0 LIMIT 1",
intval($contact_id),
intval($importer['uid']),
intval(CONTACT_IS_SHARING),
intval(CONTACT_IS_FRIEND)
intval(CONTACT_IS_FRIEND),
dbesc(NETWORK_FEED)
);
if(! count($r)) {