mirror of
https://github.com/discourse/discourse.git
synced 2025-03-13 01:55:32 +08:00

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