Compare commits
1 commit
main
...
fix-hashed
Author | SHA1 | Date | |
---|---|---|---|
a7638ef510 |
1 changed files with 9 additions and 1 deletions
|
@ -115,7 +115,15 @@
|
||||||
key.substr(2) +
|
key.substr(2) +
|
||||||
"/300x300.png"
|
"/300x300.png"
|
||||||
);
|
);
|
||||||
} else if (base === "cp" || base === "cpn") {
|
}
|
||||||
|
|
||||||
|
if (key.substr(0, 1) === "@") {
|
||||||
|
// support hashed pets
|
||||||
|
base = "cp";
|
||||||
|
key = key.substr(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (base === "cp" || base === "cpn") {
|
||||||
return petImage(base + "/" + key, quality);
|
return petImage(base + "/" + key, quality);
|
||||||
} else if (base === "url") {
|
} else if (base === "url") {
|
||||||
return key;
|
return key;
|
||||||
|
|
Loading…
Reference in a new issue