Skip to content

Commit e8e5a1e

Browse files
committed
feat: make softer check of author avatar props
1 parent 67402e0 commit e8e5a1e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/AuthorAvatar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { ResolvedAuthor } from '#shared/schemas/blog'
33
44
const props = defineProps<{
5-
author: Pick<ResolvedAuthor, 'name' | 'avatar'>
5+
author: Partial<ResolvedAuthor> & Pick<ResolvedAuthor, 'name' | 'avatar'>
66
size?: 'sm' | 'md' | 'lg'
77
}>()
88

app/components/BlogPostFederatedArticles.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const federatedArticles = computed(() => {
3131
authorHandle: article.authorHandle,
3232
author: {
3333
name: profile?.name || article.authorHandle,
34-
blueskyHandle: article.authorHandle,
34+
blueskyHandle: article.authorHandle as AtIdentifierString,
3535
avatar: profile?.avatar || null,
3636
profileUrl: profile?.profileUrl || null,
3737
},

0 commit comments

Comments
 (0)