DEV: Change Group.trusted_group_ids to use const (#25639)

We have AUTO_GROUPS, we can use this instead of the
hardcoded 10..19 (not even sure why it goes up to 19,
trust levels previously only went to 5 max).
This commit is contained in:
Martin Brennan 2024-02-12 12:36:00 +10:00 committed by GitHub
parent d80345fa83
commit 6b596151ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -478,7 +478,7 @@ class Group < ActiveRecord::Base
end
def self.trust_group_ids
(10..19).to_a
Group.auto_groups_between(:trust_level_0, :trust_level_4).to_a
end
def set_message_default_notification_levels!(topic, ignore_existing: false)