From 7073200e53f1523b78ea81e6050807aedbd3e183 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 29 May 2013 20:55:49 -0700 Subject: fix for multiple hublocs and incoming magic auth --- mod/post.php | 4 ++-- 1 file 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) ); } -- cgit v1.2.3