mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
better X-Storage-Type
none: Cached: User has no skin. cached: Skin cached checked: cached & checked for updates. No (new) skin downloaded: checked, Skin changed or unknown, downloaded. error: (error)
This commit is contained in:
@@ -79,7 +79,7 @@ function skin_url(profile) {
|
||||
// 0: cached as null
|
||||
// 1: found on disk
|
||||
// 2: profile requested/found, skin downloaded from mojang servers
|
||||
// 3: profile requested/found, but it has no skin
|
||||
// 3: profile requested/found, but it has not changed or no skin
|
||||
function get_image_hash(uuid, callback) {
|
||||
cache.get_details(uuid, function(err, details) {
|
||||
if (err) {
|
||||
@@ -96,7 +96,7 @@ function get_image_hash(uuid, callback) {
|
||||
callback(err, -1, details && details.hash);
|
||||
} else {
|
||||
console.log(uuid + " hash: " + hash);
|
||||
callback(null, (hash ? 2 : 3), hash);
|
||||
callback(null, (hash != (details && details.hash) ? 2 : 3), hash);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user