mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
parent
c2332d7505
commit
d10a050da2
@ -70,11 +70,10 @@ export function avatarUrl(template, size, { customGetURL } = {}) {
|
||||
let allowedSizes = null;
|
||||
|
||||
export function getRawAvatarSize(size) {
|
||||
allowedSizes ??=
|
||||
helperContext()
|
||||
.siteSettings["avatar_sizes"].split("|")
|
||||
.map((s) => parseInt(s, 10))
|
||||
.sort((a, b) => a - b);
|
||||
allowedSizes ??= helperContext()
|
||||
.siteSettings["avatar_sizes"].split("|")
|
||||
.map((s) => parseInt(s, 10))
|
||||
.sort((a, b) => a - b);
|
||||
|
||||
size = getRawSize(size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user