Skip to main content

comment_tree

Function comment_tree 

Source
pub fn comment_tree(
    parent: Uuid,
    db: &Database,
) -> Result<(Vec<CommentNode>, usize)>
Expand description

Formats a comment tree based on the comments found per specified parent. Attaches additional information to each comment node for convenience.

Returns a tuple of vec of nodes and total comment count.