Refactor: Improve reply filtering logic
Simplify the logic for filtering replies in a thread. The new implementation makes it easier to follow the conditions under which a reply is shown.
- If a user follows the parent and the root of a three-post thread, the reply is shown.
- For threads with four or more posts, the reply is shown if the user follows the parent, root, and grandparent.
- Add `parentsParentRef()` and `grandparentAuthor()` helper functions to traverse the reply chain.