소스 검색

add missing status for empty capes

jomo 10 년 전
부모
커밋
2e66e5c794
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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");