Skip to main content

Module quoted_note

Module quoted_note 

Source
Expand description

A note another note quotes, shown under what that one says: a card with who wrote the quoted note and when, and what it says, as a row would show it: its text, its images, the preview of the page it links to. A click opens its thread.

A quoted note shows the notes it quotes in turn the same way, a card in its card, and there it ends: quoting has no end of its own, so only so many notes deep are looked for (see QUOTE_DEPTH). A quoted note that is not at hand, for that or because nobody has it, shows as a link to it, on a line of its own.

Whether a quoted note is at hand is settled before the note quoting it is ever shown (see Note::quoted), so a card doesn’t turn up in a row that is being read.

Constants§

QUOTE_AVATAR_GAP 🔒
QUOTE_AVATAR_SIZE 🔒
How wide the picture of the quoted note’s author is, and the gap between it and their name.
QUOTE_INSET 🔒
How much narrower than its card a quoted note is: the card’s line and the room inside it, on both sides.
QUOTE_PADDING 🔒
The room between the card’s edge and the note in it.

Functions§

quote_link
A quoted note that is not at hand: the short form of its address, on a line of its own, which opens its thread, where it is looked for again.
quoted_note
The card of the quoted note note: who wrote it and how long ago, and under that what it says. It opens the note’s thread when it is clicked anywhere that doesn’t lead somewhere of its own; not while a menu is open over the list, as a row doesn’t.
quoted_note_height
How tall the card of the quoted note note will be, near enough, set in sizes in a row width wide.