cleaned up the conditions on when to and when not to relay.

This commit is contained in:
Friendika 2011-08-24 04:42:28 -07:00
parent b6fdd3c76b
commit a775474dff
3 changed files with 44 additions and 10 deletions

View file

@ -1556,7 +1556,7 @@ function subscribe_to_hub($url,$importer,$contact) {
intval($importer['uid'])
);
}
if(! count($r))
if((! count($r)) || $contact['network'] === NETWORK_DIASPORA)
return;
$push_url = get_config('system','url') . '/pubsub/' . $r[0]['nickname'] . '/' . $contact['id'];