Skip to content

Commit 1af6a92

Browse files
Address @coderabbitai's review comments
1 parent 95b09f4 commit 1af6a92

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

server/api/atproto/bluesky-comments.get.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import type { Comment, CommentEmbed } from '#shared/types/blog-post'
44
import * as app from '#shared/types/lexicons/app'
55
import { CACHE_MAX_AGE_ONE_MINUTE, BLUESKY_API, AT_URI_REGEX } from '#shared/utils/constants'
66

7-
const blueskyClient = new Client({
8-
service: BLUESKY_API,
9-
fetch: $fetch,
10-
})
7+
const blueskyClient = new Client({ service: BLUESKY_API })
118

129
/**
1310
* Provides both build and runtime comments refreshes

server/api/auth/atproto.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default defineEventHandler(async event => {
137137
)
138138

139139
const response = await fetch(
140-
`https://${SLINGSHOT_HOST}/xrpc/com.bad-example.identity.resolveMiniDoc?identifier=${authSession.did}`,
140+
`https://${SLINGSHOT_HOST}/xrpc/com.bad-example.identity.resolveMiniDoc?identifier=${encodeURIComponent(authSession.did)}`,
141141
{ headers: { 'User-Agent': 'npmx' } },
142142
)
143143
if (response.ok) {

0 commit comments

Comments
 (0)