Skip to main content

comments

Function comments 

Source
pub fn comments(
    slug: &str,
    list: &CursorPage<WikiComment>,
    ctx: &Context,
) -> String
Expand description

A page’s comments, each fenced as somebody else’s words.

The header line is ours: who, when, whether it is resolved, and — when a thread holds more than the one post — the flag that reads the rest. A deleted comment keeps its header, so the thread around it still makes sense, and loses its fence, since there is nothing left to quote.