aboutsummaryrefslogtreecommitdiffstats
path: root/include/api_auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/api_auth.php')
-rw-r--r--include/api_auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/api_auth.php b/include/api_auth.php
index 0395dae7a..be886fbb2 100644
--- a/include/api_auth.php
+++ b/include/api_auth.php
@@ -102,13 +102,13 @@ function api_login(&$a) {
if ($sigblock) {
$keyId = str_replace('acct:', '', $sigblock['keyId']);
if ($keyId) {
- $r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s'",
+ $r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s' order by hubloc_id desc",
dbesc($keyId),
dbesc($keyId)
);
if (!$r) {
HTTPSig::get_zotfinger_key($keyId);
- $r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s'",
+ $r = q("select * from hubloc where hubloc_addr = '%s' or hubloc_id_url = '%s' order by hubloc_id desc",
dbesc($keyId),
dbesc($keyId)
);