full diff

pub.leaflet.blocks.questions

leaflet.pub +17 −1
From
bafyreiesa2f62es2kpztryurnmggc2wpg6qgvxmglfmn3mkxwwnz2du2ai indexed 2026-11-13 04:08 UTC View this version
To
bafyreicxdmfgawktjfp46yd7gnz4fbsrwsbccb5arx3u2fk7sf6vauqizi indexed 2026-11-20 20:06 UTC View this version

Compatibility

breaking 1 breaking change, 6 non-breaking changes.

Breaking changes (1)
  • ConstraintTightened ConstraintTightened { vertex_id: "pub.leaflet.blocks.questions.audience", sort: "knownValues", old_value: "[\"anyone\",\"subscribers\",\"follows\",\"followers\"]", new_value: "[\"anyone\",\"subscribers\",\"paid\",\"tiers\",\"follows\",\"followers\"]" }
Non-breaking changes (6)
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.closesAt" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds" }
  • AddedVertex AddedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds:items" }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions", tgt: "pub.leaflet.blocks.questions.closesAt", kind: "prop", name: Some("closesAt") }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions", tgt: "pub.leaflet.blocks.questions.tierIds", kind: "prop", name: Some("tierIds") }
  • AddedEdge AddedEdge { src: "pub.leaflet.blocks.questions.tierIds", tgt: "pub.leaflet.blocks.questions.tierIds:items", kind: "items", name: None }

Migration guidance

Added

  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.closesAt" }
  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds" }
  • AddedVertex { vertex_id: "pub.leaflet.blocks.questions.tierIds:items" }

Constraint changes

  • ConstraintTightened ConstraintTightened { vertex_id: "pub.leaflet.blocks.questions.audience", sort: "knownValues", old_value: "[\"anyone\",\"subscribers\",\"follows\",\"followers\"]", new_value: "[\"anyone\",\"subscribers\",\"paid\",\"tiers\",\"follows\",\"followers\"]" }

Notes

  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions", tgt: "pub.leaflet.blocks.questions.closesAt", kind: "prop", name: Some("closesAt") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions", tgt: "pub.leaflet.blocks.questions.tierIds", kind: "prop", name: Some("tierIds") }
  • Non-breaking: AddedEdge { src: "pub.leaflet.blocks.questions.tierIds", tgt: "pub.leaflet.blocks.questions.tierIds:items", kind: "items", name: None }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Lets readers ask the author public questions (pub.leaflet.interactions.question) and shows the ones the author has answered (pub.leaflet.interactions.answer) or accepted (pub.leaflet.interactions.questionVisibility). Questions are resolved at render time rather than stored on the block.",
66 "properties": {
77 "audience": {
8 "description": "Who may ask: anyone, only subscribers to the document's publication, only accounts the author follows, or only accounts following the author. Defaults to anyone. Checked when a question is asked.",
8 "description": "Who may ask: anyone, only subscribers to the document's publication, only its paid members, only members of the tiers in tierIds, only accounts the author follows, or only accounts following the author. Defaults to anyone. Checked when a question is asked.",
99 "knownValues": [
1010 "anyone",
1111 "subscribers",
12 "paid",
13 "tiers",
1214 "follows",
1315 "followers"
1416 ],
1517 "type": "string"
1618 },
1719 "buttonText": {
1820 "description": "Label for the button readers use to submit a question.",
1921 "maxGraphemes": 50,
2022 "maxLength": 500,
2123 "type": "string"
2224 },
25 "closesAt": {
26 "description": "When the block stops taking questions. Absent means it never closes. Checked when a question is submitted.",
27 "format": "datetime",
28 "type": "string"
29 },
2330 "key": {
2431 "description": "Tells this block apart from the document's other blocks of its type; interaction records name it in their `block` field. Records without a matching key belong to the first block of the type.",
2532 "maxLength": 100,
2633 "type": "string"
2734 },
2835 "showPending": {
2936 "description": "Show readers questions the author hasn't accepted, answered or hidden yet. Defaults to false.",
3037 "type": "boolean"
38 },
39 "tierIds": {
40 "description": "Paid membership tier ids whose active members may ask when audience is tiers.",
41 "items": {
42 "maxLength": 100,
43 "type": "string"
44 },
45 "maxLength": 50,
46 "type": "array"
3147 }
3248 },
3349 "required": [],
3450 "type": "object"
3551 }
3652 },
3753 "id": "pub.leaflet.blocks.questions",
3854 "lexicon": 1
3955}

Compare other versions