aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/api.php1
-rw-r--r--include/api_auth.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php
index 8d475c5fa..7ba10757c 100644
--- a/include/api.php
+++ b/include/api.php
@@ -2040,6 +2040,7 @@ require_once('include/api_auth.php');
return false;
}
+// @fixme - update for hubzilla extensible perms using abconfig or find a better way to do it
// For Red, the closest thing we can do to figure out if you're friends is if both of you are sending each other your streams.
// This won't work if either of you send your stream to everybody on the network
if($qtype == 'friends')
diff --git a/include/api_auth.php b/include/api_auth.php
index 7a71bad73..e5cd7cab3 100644
--- a/include/api_auth.php
+++ b/include/api_auth.php
@@ -64,8 +64,10 @@ function api_login(&$a){
}
}
+
+
if($record['account']) {
- authenticate_success($record);
+ authenticate_success($record['account']);
if($channel_login)
change_channel($channel_login);