From 4468b55b4f61912d2064214579a9dc2e8ef541e0 Mon Sep 17 00:00:00 2001 From: jomo Date: Thu, 21 Jan 2016 21:54:46 +0100 Subject: [PATCH] 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 --- lib/helpers.js | 2 +- lib/networking.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers.js b/lib/helpers.js index bb14c21..06761a6 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -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) { diff --git a/lib/networking.js b/lib/networking.js index 8cb5e4a..3cba117 100644 --- a/lib/networking.js +++ b/lib/networking.js @@ -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) {