From 1426b7a6dc56250bc528c21028975ac9d68a2d95 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 27 Aug 2023 20:29:30 +0000 Subject: order by hubloc_id like everywhere else for this reason and do not include deleted hublocs --- include/channel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index 2e8aefaaa..50cd77d6c 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1937,7 +1937,7 @@ function zid_init() { call_hooks('zid_init', $arr); if(! local_channel()) { - $r = q("select hubloc_url, hubloc_hash, hubloc_network from hubloc where hubloc_addr = '%s' order by hubloc_connected desc", + $r = q("select hubloc_url, hubloc_hash, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0 order by hubloc_id desc", dbesc($tmp_str) ); if(! $r) { -- cgit v1.2.3