always show image, get steve/alex by UUID, send correct HTTP status codes

This commit is contained in:
jomo
2014-11-05 01:40:03 +01:00
parent 9b3884d85a
commit e592048ec1
2 changed files with 21 additions and 13 deletions

View File

@@ -78,4 +78,13 @@ exp.resize_img = function(inname, size, callback) {
});
};
// returns "alex" or "steve" calculated by the +uuid+
exp.default_skin = function(uuid) {
if (Number("0x" + uuid[31]) % 2 === 0) {
return "alex";
} else {
return "steve";
}
};
module.exports = exp;