aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-26 08:19:34 +0000
committerMario <mario@mariovavti.com>2023-05-26 08:19:34 +0000
commit02089f15c46248937389d63dcef31a44b21644f2 (patch)
tree4cf5f79cd239757329f4da4cab222b1ef00263b9 /Zotlabs/Module
parent43a18a2569fc3a65df77c3654b0415b81fdebfdb (diff)
downloadvolse-hubzilla-02089f15c46248937389d63dcef31a44b21644f2.tar.gz
volse-hubzilla-02089f15c46248937389d63dcef31a44b21644f2.tar.bz2
volse-hubzilla-02089f15c46248937389d63dcef31a44b21644f2.zip
work around hubloc confusion in mod rmagic
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Rmagic.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Rmagic.php b/Zotlabs/Module/Rmagic.php
index 2950dca5e..90cf8b854 100644
--- a/Zotlabs/Module/Rmagic.php
+++ b/Zotlabs/Module/Rmagic.php
@@ -12,13 +12,13 @@ class Rmagic extends \Zotlabs\Web\Controller {
$me = get_my_address();
if($me) {
- $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0",
+ $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
dbesc($me)
);
if(! $r) {
$w = discover_by_webbie($me);
if($w) {
- $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0",
+ $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
dbesc($me)
);
}
@@ -57,13 +57,13 @@ class Rmagic extends \Zotlabs\Web\Controller {
$r = null;
if($address) {
- $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0",
+ $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
dbesc($address)
);
if(! $r) {
$w = discover_by_webbie($address);
if($w) {
- $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0",
+ $r = q("select hubloc_url, hubloc_network from hubloc where hubloc_addr = '%s' and hubloc_deleted = 0 order by hubloc_id desc",
dbesc($address)
);
}