code for shallow nesting of posts and comments