From 21393652621efba8a95715c6f340515d58599ec6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 May 2022 17:51:48 +0200 Subject: Fix avatar default size --- client/src/app/shared/shared-main/account/actor.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-main/account/actor.model.ts b/client/src/app/shared/shared-main/account/actor.model.ts index 8427c9902..6be6b75d0 100644 --- a/client/src/app/shared/shared-main/account/actor.model.ts +++ b/client/src/app/shared/shared-main/account/actor.model.ts @@ -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) -- cgit v1.2.3