a tool for shared writing and social publishing

handle publishing blockquotes

+11
+11
actions/publishToPublication.ts
··· 18 18 PubLeafletBlocksMath, 19 19 PubLeafletBlocksHorizontalRule, 20 20 PubLeafletBlocksBskyPost, 21 + PubLeafletBlocksBlockquote, 21 22 } from "lexicons/api"; 22 23 import { Block } from "components/Blocks/Block"; 23 24 import { TID } from "@atproto/common"; ··· 255 256 let block: $Typed<PubLeafletBlocksHeader.Main> = { 256 257 $type: "pub.leaflet.blocks.header", 257 258 level: headingLevel?.data.value || 1, 259 + plaintext: stringValue, 260 + facets, 261 + }; 262 + return block; 263 + } 264 + 265 + if (b.type === "blockquote") { 266 + let [stringValue, facets] = getBlockContent(b.value); 267 + let block: $Typed<PubLeafletBlocksBlockquote.Main> = { 268 + $type: ids.PubLeafletBlocksBlockquote, 258 269 plaintext: stringValue, 259 270 facets, 260 271 };