mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 02:31:55 +08:00

* DEV: small refactor of the category_moderators method Used `index_by(&:id)` instead of `map { |u| [u.id, u] }.to_h` thanks to @cvx's recommendation. Also renamed the `moderators` variable to not clash with method of the same name.