UX: Hide unrelated replies when filtering with replies_to_post_number filter. (PR #14898)

Prior to this change, filtering a TopicView with replies_to_post_number would show the gaps due to other posts in the post stream. However, expanding those posts into the stream does not make sense since the filtered view is only concerned with the posts that are in reply to a given post. Therefore, this change makes it such that only hidden posts which are in reply to the given post is present in the gaps.

GitHub

Hmm, I am not sure about this. It is nice to be able to unhide only certain sections of the hidden posts when you filter by replies to a post.

Also, I pulled this locally and there is a regression here, the bottom bar that shows you’re in “filtered mode” is now missing.

Core:

This PR:

It is nice to be able to unhide only certain sections of the hidden posts when you filter by replies to a post.