we don't need every hubloc for the site, only those that have different keys

This commit is contained in:
friendica 2013-05-16 21:06:01 -07:00
parent 75461355ff
commit 9b66f16a01

View File

@ -191,7 +191,7 @@ function post_post(&$a) {
logger('mod_zot: pickup: ' . $ret['message'], LOGGER_DEBUG); logger('mod_zot: pickup: ' . $ret['message'], LOGGER_DEBUG);
json_return_and_die($ret); json_return_and_die($ret);
} }
$r = q("select hubloc_sitekey from hubloc where hubloc_url = '%s' and hubloc_callback = '%s' and hubloc_sitekey != '' ", $r = q("select distinct hubloc_sitekey from hubloc where hubloc_url = '%s' and hubloc_callback = '%s' and hubloc_sitekey != '' group by hubloc_sitekey ",
dbesc($data['url']), dbesc($data['url']),
dbesc($data['callback']) dbesc($data['callback'])
); );