Undo accidental reversion included in last checkin
This commit is contained in:
parent
372b7b1405
commit
204a2c94cd
@ -1092,8 +1092,7 @@ function discover_by_webbie($webbie) {
|
|||||||
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
|
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
|
||||||
dbesc($webbie)
|
dbesc($webbie)
|
||||||
);
|
);
|
||||||
if($r)
|
if(! $r) {
|
||||||
return true;
|
|
||||||
|
|
||||||
$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') ",
|
$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($addr),
|
||||||
@ -1106,6 +1105,7 @@ function discover_by_webbie($webbie) {
|
|||||||
dbesc(z_root()),
|
dbesc(z_root()),
|
||||||
dbescdate(datetime_convert())
|
dbescdate(datetime_convert())
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("select * from hubloc where hubloc_hash = '%s' limit 1",
|
$r = q("select * from hubloc where hubloc_hash = '%s' limit 1",
|
||||||
dbesc($webbie)
|
dbesc($webbie)
|
||||||
|
Reference in New Issue
Block a user