aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Rmagic.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-26 08:19:34 +0000
committerMario <mario@mariovavti.com>2023-06-02 21:18:52 +0200
commit330b36159d40428fdbb6dd12dcc402ad069c94ab (patch)
treee2c7ebe5048835aaa437108d8a38122a61131060 /Zotlabs/Module/Rmagic.php
parent046152e7980bedcb1df4a824adb15661648fcba0 (diff)
downloadvolse-hubzilla-330b36159d40428fdbb6dd12dcc402ad069c94ab.tar.gz
volse-hubzilla-330b36159d40428fdbb6dd12dcc402ad069c94ab.tar.bz2
volse-hubzilla-330b36159d40428fdbb6dd12dcc402ad069c94ab.zip
work around hubloc confusion in mod rmagic
(cherry picked from commit 02089f15c46248937389d63dcef31a44b21644f2)
Diffstat (limited to 'Zotlabs/Module/Rmagic.php')
-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)
);
}