pub.leaflet.blocks.questions

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.

Repository @leaflet.pub did:plc:btxrwcaeyodrap5mnjw2fvmz namespace authority
Details · object
Kindobject
Authorityblocks.leaflet.pub
Commit rev3n2rf64q4h42j
Indexed

Showing version bafyreicxdmfgawktjfp46yd7gnz4fbsrwsbccb5arx3u2fk7sf6vauqizi. Show the latest

Object

object

Properties

audience

string

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.

  • knownValues: anyone | subscribers | paid | tiers | follows | followers

Label for the button readers use to submit a question.

  • maxLength: 500
  • maxGraphemes: 50

closesAt

string · datetime

When the block stops taking questions. Absent means it never closes. Checked when a question is submitted.

key

string

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.

  • maxLength: 100

Show readers questions the author hasn't accepted, answered or hidden yet. Defaults to false.

tierIds

array

Paid membership tier ids whose active members may ask when audience is tiers.

  • maxLength: 50
itemsstring
  • maxLength: 100

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Lets readers submit their own documents as replies to this one (pub.leaflet.interactions.reply) and shows the ones the author made visible (pub.leaflet.interactions.replyVisibility). Replies are resolved at render time rather than stored on the block.

  • A public question asked of a document's author, shown on the document once the author answers (pub.leaflet.interactions.answer) or accepts it (pub.leaflet.interactions.questionVisibility)

  • Declares which questions asked on a document the author accepted or hid. Lives in the document's repo, with a record key matching the document's. An answered question shows unless hidden; any other question is pending.

  • Marks where members-only content begins and declares which publication members can read past it.

  • The author's answer to a pub.leaflet.interactions.question, written in the repo that owns the question's subject document. One record per question.