aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-11-14 18:25:02 -0800
committerzotlabs <mike@macgirvin.com>2018-11-14 18:25:02 -0800
commit5f166158c3900bd85a204d3b7741d8e190a92bc4 (patch)
tree9ae876fa6c26b003a5712d73cf79b2907de7ea69 /include
parent4a06378d672cd355e337b2456096e76f698cf163 (diff)
downloadvolse-hubzilla-5f166158c3900bd85a204d3b7741d8e190a92bc4.tar.gz
volse-hubzilla-5f166158c3900bd85a204d3b7741d8e190a92bc4.tar.bz2
volse-hubzilla-5f166158c3900bd85a204d3b7741d8e190a92bc4.zip
filter by network
Diffstat (limited to 'include')
-rw-r--r--include/zot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index 756a5bde6..b0d6ffd61 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -83,7 +83,7 @@ function zot_get_hublocs($hash) {
/* Only search for active hublocs - e.g. those that haven't been marked deleted */
- $ret = q("select * from hubloc where hubloc_hash = '%s' and hubloc_deleted = 0 order by hubloc_url ",
+ $ret = q("select * from hubloc where hubloc_hash = '%s' and hubloc_deleted = 0 and hubloc_network = 'zot' order by hubloc_url ",
dbesc($hash)
);
@@ -656,7 +656,7 @@ function zot_gethub($arr, $multiple = false) {
$r = q("select hubloc.*, site.site_crypto from hubloc left join site on hubloc_url = site_url
where hubloc_guid = '%s' and hubloc_guid_sig = '%s'
- and hubloc_url = '%s' and hubloc_url_sig = '%s'
+ and hubloc_url = '%s' and hubloc_url_sig = '%s' and hubloc_network = 'zot'
$sitekey $limit",
dbesc($arr['guid']),
dbesc($arr['guid_sig']),