Explorar o código

add missing status for empty capes

jomo %!s(int64=10) %!d(string=hai) anos
pai
achega
2e66e5c794
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/helpers.js

+ 1 - 1
lib/helpers.js

@@ -356,7 +356,7 @@ exp.get_render = function(rid, userId, scale, helm, body, callback) {
 exp.get_cape = function(rid, userId, callback) {
   exp.get_image_hash(rid, userId, "cape", function(err, status, cape_hash) {
     if (!cape_hash) {
-      callback(err, null, null, null);
+      callback(err, null, status, null);
       return;
     }
     var capepath = path.join(__dirname, "..", config.capes_dir, cape_hash + ".png");