Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Can't dismiss unread posts in topics of a sub-subcategory (#22870)
This is a similar fix to 32d4810 Why this change? Prior to this change, there is a bug in `TopicsController#bulk` where it does not dismiss new unred posts in sub-subcategories when the `category_id` and `include_subcategories=true` params are present. This is because the controller did not account for sub-subcategories when fetching the category ids of the new topics that should be dismissed. This commit fixes the problem by relying on the `Category.subcategory_ids` class method which accounts for sub-subcategories.
- Loading branch information
Showing
2 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters