mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:55:14 +00:00
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.
This commit is contained in:
parent
5fac8e80de
commit
3867081503
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue