mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Fix avatar default size
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user