Przeglądaj źródła

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 lat temu
rodzic
commit
4468b55b4f
2 zmienionych plików z 2 dodań i 2 usunięć
  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+
 // 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
 // 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
 // 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) {
 function store_skin(rid, userId, profile, cache_details, callback) {
   networking.get_skin_info(rid, userId, profile, function(err, url, slim) {
   networking.get_skin_info(rid, userId, profile, function(err, url, slim) {
     if (!err && userId.length > 16) {
     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) {
   if (userId.length <= 16) {
     // username
     // username
     exp.get_username_url(rid, userId, type, function(err, url) {
     exp.get_username_url(rid, userId, type, function(err, url) {
-      callback(err, url || null, false);
+      callback(err, url || null, undefined);
     });
     });
   } else {
   } else {
     exp.get_uuid_info(profile, type, function(url, slim) {
     exp.get_uuid_info(profile, type, function(url, slim) {