Fix avatar default size

pull/5004/head
Chocobozzz 2022-05-23 17:51:48 +02:00
parent f6b89d8e87
commit 2139365262
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export abstract class Actor implements ServerActor {
isLocal: boolean
static GET_ACTOR_AVATAR_URL (actor: { avatars: { width: number, url?: string, path: string }[] }, size?: number) {
const avatars = actor.avatars.sort((a, b) => a.width - b.width)
const avatars = actor.avatars.sort((a, b) => b.width - a.width)
const avatar = size
? avatars.find(a => a.width >= size)