14.7. Viewing Comments and Replies#
If you don’t want the coding version of this online textbook go here: No Coding
In order to explore automated content moderation, we are going to now look at how we can view a comment and its replies (and replies to those replies, etc.). Once we have a way of displaying these comments, then we can add a rules to show or hide specific comments.
As a first step, we need to look at how comments and replies are saved in a data structures called a “trees.”