diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-23 17:51:48 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-23 17:51:48 +0200 |
commit | 21393652621efba8a95715c6f340515d58599ec6 (patch) | |
tree | fbae4d5f3bbda4d6b7b50aeee40d62efd0bab914 /client | |
parent | f6b89d8e87d827b4526f7175ae0e8d955585e679 (diff) | |
download | PeerTube-21393652621efba8a95715c6f340515d58599ec6.tar.gz PeerTube-21393652621efba8a95715c6f340515d58599ec6.tar.zst PeerTube-21393652621efba8a95715c6f340515d58599ec6.zip |
Fix avatar default size
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/shared-main/account/actor.model.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
21 | isLocal: boolean | 21 | isLocal: boolean |
22 | 22 | ||
23 | static GET_ACTOR_AVATAR_URL (actor: { avatars: { width: number, url?: string, path: string }[] }, size?: number) { | 23 | static GET_ACTOR_AVATAR_URL (actor: { avatars: { width: number, url?: string, path: string }[] }, size?: number) { |
24 | const avatars = actor.avatars.sort((a, b) => a.width - b.width) | 24 | const avatars = actor.avatars.sort((a, b) => b.width - a.width) |
25 | 25 | ||
26 | const avatar = size | 26 | const avatar = size |
27 | ? avatars.find(a => a.width >= size) | 27 | ? avatars.find(a => a.width >= size) |