diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-01 15:51:15 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-01 15:51:15 -0800 |
commit | 1ba74d824bcf69dfb7f4fc5d61bdc4b07b6ec612 (patch) | |
tree | 1abd82787f16160e700fbda1723995c7838198e2 | |
parent | 78e18fcdcfaa879db1d7bf487c2e5de0e43e34b0 (diff) | |
download | volse-hubzilla-1ba74d824bcf69dfb7f4fc5d61bdc4b07b6ec612.tar.gz volse-hubzilla-1ba74d824bcf69dfb7f4fc5d61bdc4b07b6ec612.tar.bz2 volse-hubzilla-1ba74d824bcf69dfb7f4fc5d61bdc4b07b6ec612.zip |
usercache is no longer used
-rw-r--r-- | include/api.php | 7 | ||||
-rw-r--r-- | version.inc | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/include/api.php b/include/api.php index f279b2aa3..e60583a01 100644 --- a/include/api.php +++ b/include/api.php @@ -382,7 +382,6 @@ require_once('include/api_auth.php'); function api_item_get_user(&$a, $item) { - global $usercache; // The author is our direct contact, in a conversation with us. @@ -396,11 +395,11 @@ require_once('include/api_auth.php'); $name = $item['author']['xchan_name']; // Generating a random ID - if (is_null($usercache[$nick]) or !array_key_exists($nick, $usercache)) - $usercache[$nick] = mt_rand(2000000, 2100000); + if (! $nick) + $nick = mt_rand(2000000, 2100000); $ret = array( - 'id' => $usercache[$nick], + 'id' => $nick, 'name' => $name, 'screen_name' => $nick, 'location' => '', //$uinfo[0]['default-location'], diff --git a/version.inc b/version.inc index 936c9fe07..9819f1c95 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-11-30.1232 +2015-12-01.1233 |