Jelajahi Sumber

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
jomo 9 tahun lalu
induk
melakukan
4468b55b4f
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      lib/helpers.js
  2. 1 1
      lib/networking.js

+ 1 - 1
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) {

+ 1 - 1
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) {