From 8eeccb562aabb419c3ba22fff78e34d9202c650d Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Mon, 20 Oct 2025 15:20:34 -0400 Subject: [PATCH] convert comment to json before returning --- .../[rkey]/Interactions/Comments/commentAction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/commentAction.ts b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/commentAction.ts index bd1234a3..1df1c06e 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/commentAction.ts +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Comments/commentAction.ts @@ -5,7 +5,7 @@ import { getIdentityData } from "actions/getIdentityData"; import { PubLeafletRichtextFacet } from "lexicons/api"; import { createOauthClient } from "src/atproto-oauth"; import { TID } from "@atproto/common"; -import { AtUri, Un$Typed } from "@atproto/api"; +import { AtUri, lexToJson, Un$Typed } from "@atproto/api"; import { supabaseServerClient } from "supabase/serverClient"; import { Json } from "supabase/database.types"; @@ -68,7 +68,7 @@ export async function publishComment(args: { return { record: data?.[0].record as Json, - profile: profile.value, + profile: lexToJson(profile.value), uri: uri.toString(), }; } -- 2.54.0