tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
convert comment to json before returning
awarm.space
4 months ago
8eeccb56
00fab06c
+2
-2
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
Interactions
Comments
commentAction.ts
+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
8
-
import { AtUri, Un$Typed } from "@atproto/api";
8
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
71
-
profile: profile.value,
71
71
+
profile: lexToJson(profile.value),
72
72
uri: uri.toString(),
73
73
};
74
74
}