a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

optimistically add record to database

+2
+2
app/lish/createPub/createPublication.ts
··· 5 5 import { getIdentityData } from "actions/getIdentityData"; 6 6 import { supabaseServerClient } from "supabase/serverClient"; 7 7 import { Un$Typed } from "@atproto/api"; 8 + import { Json } from "supabase/database.types"; 8 9 9 10 export async function createPublication({ 10 11 name, ··· 53 54 uri: result.uri, 54 55 identity_did: credentialSession.did!, 55 56 name: record.name, 57 + record: record as Json, 56 58 }); 57 59 58 60 return { success: true, name };