Fix gravatar srcset (#5744)

This commit is contained in:
Denis Bykhov 2024-06-06 19:27:26 +05:00 committed by GitHub
parent 00d579adfd
commit f084060363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -401,7 +401,7 @@ export default async (): Promise<Resources> => ({
color: getPersonColor(person, name)
}
},
GetGravatarUrl: async (person: Data<WithLookup<AvatarInfo>>, name: string, width: number) => ({
GetGravatarUrl: async (person: Data<WithLookup<AvatarInfo>>, name: string, width: number = 64) => ({
url: person.avatarProps?.url !== undefined ? getGravatarUrl(person.avatarProps?.url, width) : undefined,
srcSet:
person.avatarProps?.url !== undefined