aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-12-13 20:20:55 +0000
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-12-13 20:20:55 +0000
commit38670815039741b31bbd75647f81096810ddaadb (patch)
treee6a363fc1aec44d286e997d1bfe2eb03c4d10afe /include
parent5fac8e80de1951ef9c68925001000d74d3c52a8e (diff)
downloadvolse-hubzilla-38670815039741b31bbd75647f81096810ddaadb.tar.gz
volse-hubzilla-38670815039741b31bbd75647f81096810ddaadb.tar.bz2
volse-hubzilla-38670815039741b31bbd75647f81096810ddaadb.zip
Let Diaspora hublocs come back by allowing discover_by_webbie() to carry on if
and look for a hubloc even if an xchan is found. You'll probably need to loop through the missing ones manually.
Diffstat (limited to 'include')
-rw-r--r--include/network.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/network.php b/include/network.php
index ee2a6a59b..db48caf37 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1092,9 +1092,7 @@ function discover_by_webbie($webbie) {
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($webbie)
);
- if($r)
- return true;
-
+ if(! $r) {
$r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_pubkey, xchan_addr, xchan_url, xchan_name, xchan_network, xchan_instance_url, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s') ",
dbesc($addr),
dbesc($guid),
@@ -1106,6 +1104,7 @@ function discover_by_webbie($webbie) {
dbesc(z_root()),
dbescdate(datetime_convert())
);
+ }
$r = q("select * from hubloc where hubloc_hash = '%s' limit 1",
dbesc($webbie)