Alan Guo Xiang Tan
32d4810e2b
FIX: Can't dismiss new topics that belong to a sub-sub category ( #22849 )
...
What is the context for this change?
Prior to this change, there is a bug in `TopicsController#reset_new`
where it does not dismiss new topics 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.
2023-07-28 12:06:42 +08:00
..
2023-07-19 23:06:13 +08:00
2023-07-24 11:45:04 -06:00
2023-01-09 11:49:28 +00:00
2023-07-11 15:24:36 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-06-05 08:06:00 +08:00
2023-05-25 15:24:48 -03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-08 18:00:01 -05:00
2023-07-18 15:09:32 -04:00
2023-01-09 11:49:28 +00:00
2023-04-20 10:26:11 -05:00
2023-06-08 18:00:01 -05:00
2023-02-16 10:47:01 +00:00
2023-06-01 05:27:11 +03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-05-30 09:34:01 -07:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-05-23 09:33:55 +02:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-05-12 17:09:40 +03:00
2023-01-09 11:49:28 +00:00
2023-05-17 09:16:42 -07:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-18 11:50:31 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-04-20 09:38:41 -05:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-06-16 12:44:35 +10:00
2023-07-11 15:25:01 -06:00
2023-05-04 09:20:52 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-05-25 07:53:57 +08:00
2023-01-09 11:49:28 +00:00
2023-06-05 08:06:00 +08:00
2023-05-17 14:28:31 +08:00
2023-01-09 11:49:28 +00:00
2023-07-17 11:47:52 +08:00
2023-01-09 11:49:28 +00:00
2023-07-28 12:06:42 +08:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-01 10:00:01 +10:00
2023-01-09 11:49:28 +00:00
2023-01-30 22:42:47 +00:00
2023-07-27 10:52:33 +08:00
2023-06-16 12:44:35 +10:00
2023-06-08 20:06:20 +03:00
2023-01-09 11:49:28 +00:00