From a463d665f1c879ea60774e5dfa9345a168af06fc Mon Sep 17 00:00:00 2001 From: Jonathan Yeong Date: Sun, 1 Mar 2026 11:56:17 -0500 Subject: [PATCH] fix: blog CI issues --- app/components/global/BlueskyPostEmbed.client.vue | 2 +- shared/types/blog-post.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/global/BlueskyPostEmbed.client.vue b/app/components/global/BlueskyPostEmbed.client.vue index 4254d4ba9c..9acd3753ca 100644 --- a/app/components/global/BlueskyPostEmbed.client.vue +++ b/app/components/global/BlueskyPostEmbed.client.vue @@ -49,7 +49,7 @@ async function resolveAtUri(): Promise { const [, handle, rkey] = match // If the handle is already a DID, build the AT URI directly - if (handle.startsWith('did:')) { + if (handle && handle.startsWith('did:')) { return `at://${handle}/app.bsky.feed.post/${rkey}` } diff --git a/shared/types/blog-post.ts b/shared/types/blog-post.ts index 2da1b95b0a..9bb181891f 100644 --- a/shared/types/blog-post.ts +++ b/shared/types/blog-post.ts @@ -1,3 +1,4 @@ +import { type AtIdentifierString } from '@atproto/lex' import type * as app from '#shared/types/lexicons/app' export type CommentEmbed = @@ -27,6 +28,6 @@ export interface Comment { export interface FederatedArticleInput { url: string title: string - authorHandle: string + authorHandle: AtIdentifierString description: string }