Skip to main content

append_comment_reply

Function append_comment_reply 

Source
pub fn append_comment_reply(
    list: &[ThreadComment],
    reply_to_id: Option<&str>,
    max_depth: usize,
    reply: ThreadComment,
) -> Vec<ThreadComment>
Expand description

Pure helper: attaches reply under reply_to_id clamped to max_depth (or root if None).