From 07f3dc12969d42e4abbc6d84a62a60766ad4a7ee Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Sun, 14 Dec 2025 20:26:10 +0400 Subject: [PATCH] fix adding local comments --- .../[rkey]/Interactions/Comments/CommentBox.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx index c628aae7..f99e1a6f 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/CommentBox.tsx @@ -1,4 +1,4 @@ -import { UnicodeString } from "@atproto/api"; +import { AtUri, UnicodeString } from "@atproto/api"; import { autolink } from "components/Blocks/TextBlock/autolink-plugin"; import { multiBlockSchema } from "components/Blocks/TextBlock/schema"; import { PubLeafletRichtextFacet } from "lexicons/api"; @@ -196,7 +196,10 @@ export function CommentBox(props: { { record: comment.record, uri: comment.uri, - bsky_profiles: { record: comment.profile as Json }, + bsky_profiles: { + record: comment.profile as Json, + did: new AtUri(comment.uri).host, + }, }, ], })); -- 2.54.0