parent
c2332d7505
commit
d10a050da2
|
@ -70,11 +70,10 @@ export function avatarUrl(template, size, { customGetURL } = {}) {
|
||||||
let allowedSizes = null;
|
let allowedSizes = null;
|
||||||
|
|
||||||
export function getRawAvatarSize(size) {
|
export function getRawAvatarSize(size) {
|
||||||
allowedSizes ??=
|
allowedSizes ??= helperContext()
|
||||||
helperContext()
|
.siteSettings["avatar_sizes"].split("|")
|
||||||
.siteSettings["avatar_sizes"].split("|")
|
.map((s) => parseInt(s, 10))
|
||||||
.map((s) => parseInt(s, 10))
|
.sort((a, b) => a - b);
|
||||||
.sort((a, b) => a - b);
|
|
||||||
|
|
||||||
size = getRawSize(size);
|
size = getRawSize(size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue