84b0a6414d
When selecting a post and its replies using the "select +replies" button, the action would push all ids, without checking if some were already selected. This change add a filter to remove ids that are already selected. This fixes https://meta.discourse.org/t/selecting-posts-replies-miscounts-the-number-of-posts/229242 Co-authored-by: @ZogStriP