Skip to content

Commit a463d66

Browse files
committed
fix: blog CI issues
1 parent 36dd357 commit a463d66

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

app/components/global/BlueskyPostEmbed.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function resolveAtUri(): Promise<string | null> {
4949
const [, handle, rkey] = match
5050
5151
// If the handle is already a DID, build the AT URI directly
52-
if (handle.startsWith('did:')) {
52+
if (handle && handle.startsWith('did:')) {
5353
return `at://${handle}/app.bsky.feed.post/${rkey}`
5454
}
5555

shared/types/blog-post.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { type AtIdentifierString } from '@atproto/lex'
12
import type * as app from '#shared/types/lexicons/app'
23

34
export type CommentEmbed =
@@ -27,6 +28,6 @@ export interface Comment {
2728
export interface FederatedArticleInput {
2829
url: string
2930
title: string
30-
authorHandle: string
31+
authorHandle: AtIdentifierString
3132
description: string
3233
}

0 commit comments

Comments
 (0)