username request shouldn't set skin model

if it's set to slim (by a uuid request before), that would have been overwritten and set to not slim
This commit is contained in:
jomo 2016-01-21 21:54:46 +01:00
parent 4f667cc99f
commit 4468b55b4f
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function get_hash(url) {
// gets the skin for +userId+ with +profile+
// uses +cache_details+ to determine if the skin needs to be downloaded or can be taken from cache
// face and face+helm images are extracted and stored to files
// callback: error, skin hash, callback
// callback: error, skin hash, slim
function store_skin(rid, userId, profile, cache_details, callback) {
networking.get_skin_info(rid, userId, profile, function(err, url, slim) {
if (!err && userId.length > 16) {

View File

@ -20,7 +20,7 @@ function get_info(rid, userId, profile, type, callback) {
if (userId.length <= 16) {
// username
exp.get_username_url(rid, userId, type, function(err, url) {
callback(err, url || null, false);
callback(err, url || null, undefined);
});
} else {
exp.get_uuid_info(profile, type, function(url, slim) {