aboutsummaryrefslogtreecommitdiffstats
path: root/mod/post.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-29 20:55:49 -0700
committerfriendica <info@friendica.com>2013-05-29 20:55:49 -0700
commit7073200e53f1523b78ea81e6050807aedbd3e183 (patch)
tree0ffa9c9ebcaff5d650d52214bb77453db444ea7e /mod/post.php
parentfadf2c3ea6e363b96f5aa60d163489fe3886b2c3 (diff)
downloadvolse-hubzilla-7073200e53f1523b78ea81e6050807aedbd3e183.tar.gz
volse-hubzilla-7073200e53f1523b78ea81e6050807aedbd3e183.tar.bz2
volse-hubzilla-7073200e53f1523b78ea81e6050807aedbd3e183.zip
fix for multiple hublocs and incoming magic auth
Diffstat (limited to 'mod/post.php')
-rw-r--r--mod/post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/post.php b/mod/post.php
index 344f5be9e..5c636efa9 100644
--- a/mod/post.php
+++ b/mod/post.php
@@ -49,7 +49,7 @@ function post_init(&$a) {
}
// Try and find a hubloc for the person attempting to auth
- $x = q("select * from hubloc left join xchan on xchan_hash = hubloc_hash where hubloc_addr = '%s' limit 1",
+ $x = q("select * from hubloc left join xchan on xchan_hash = hubloc_hash where hubloc_addr = '%s' order by hubloc_id desc limit 1",
dbesc($address)
);
@@ -60,7 +60,7 @@ function post_init(&$a) {
$j = json_decode($ret['body'],true);
if($j)
import_xchan($j);
- $x = q("select * from hubloc left join xchan on xchan_hash = hubloc_hash where hubloc_addr = '%s' limit 1",
+ $x = q("select * from hubloc left join xchan on xchan_hash = hubloc_hash where hubloc_addr = '%s' order by hubloc_id desc limit 1",
dbesc($address)
);
}