We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8986696 + 7c7801e commit 2b7450dCopy full SHA for 2b7450d
resources/js/Components/UserAvatar.vue
@@ -17,7 +17,7 @@ const props = defineProps({
17
})
18
19
const avatar = computed(
20
- () => props.avatar ?? `https://avatars.dicebear.com/api/${props.api}/${props.username.replace(/[^a-z0-9]+/i, '-')}.svg`
+ () => props.avatar ?? `https://api.dicebear.com/7.x/${props.api}/svg?seed=${props.username.replace(/[^a-z0-9]+/i, '-')}`
21
)
22
23
const username = computed(() => props.username)
0 commit comments