userId?: number
- static GET_ACTOR_AVATAR_URL (actor: { avatars: { width: number, url?: string, path: string }[] }, size: number) {
+ static GET_ACTOR_AVATAR_URL (actor: { avatars: { width: number, url?: string, path: string }[] }, size?: number) {
return Actor.GET_ACTOR_AVATAR_URL(actor, size)
}
- static GET_DEFAULT_AVATAR_URL (size: number) {
- if (size <= 48) {
+ static GET_DEFAULT_AVATAR_URL (size?: number) {
+ if (size && size <= 48) {
return `${window.location.origin}/client/assets/images/default-avatar-account-48x48.png`
}