a tool for shared writing and social publishing

convert comment to json before returning

+2 -2
+2 -2
app/lish/[did]/[publication]/[rkey]/Interactions/Comments/commentAction.ts
··· 5 5 import { PubLeafletRichtextFacet } from "lexicons/api"; 6 6 import { createOauthClient } from "src/atproto-oauth"; 7 7 import { TID } from "@atproto/common"; 8 - import { AtUri, Un$Typed } from "@atproto/api"; 8 + import { AtUri, lexToJson, Un$Typed } from "@atproto/api"; 9 9 import { supabaseServerClient } from "supabase/serverClient"; 10 10 import { Json } from "supabase/database.types"; 11 11 ··· 68 68 69 69 return { 70 70 record: data?.[0].record as Json, 71 - profile: profile.value, 71 + profile: lexToJson(profile.value), 72 72 uri: uri.toString(), 73 73 }; 74 74 }