a tool for shared writing and social publishing
0
fork

Configure Feed

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

keep existing fields when updating post

+4 -1
+4 -1
actions/publishToPublication.ts
··· 55 55 ); 56 56 let { data: draft } = await supabaseServerClient 57 57 .from("leaflets_in_publications") 58 - .select("*, publications(*)") 58 + .select("*, publications(*), documents(*)") 59 59 .eq("publication", publication_uri) 60 60 .eq("leaflet", leaflet_id) 61 61 .single(); ··· 92 92 scan, 93 93 ); 94 94 95 + let existingRecord = 96 + (draft?.documents?.data as PubLeafletDocument.Record) || {}; 95 97 let record: PubLeafletDocument.Record = { 98 + ...existingRecord, 96 99 $type: "pub.leaflet.document", 97 100 author: credentialSession.did!, 98 101 title: title || "Untitled",