discourse/db/fixtures/003_flags.rb
Krzysztof Kotlarek c0bcd979e3
FEATURE: custom flag can require additional message (#27706)
Allow admin to create custom flag which requires an additional message.

I decided to rename the old `custom_flag` into `require_message` as it is more descriptive.
2024-07-15 08:48:01 +10:00

60 lines
1.3 KiB
Ruby

# frozen_string_literal: true
Flag.seed do |s|
s.id = 6
s.name = "notify_user"
s.notify_type = false
s.auto_action_type = false
s.require_message = true
s.applies_to = %w[Post Chat::Message]
end
Flag.seed do |s|
s.id = 3
s.name = "off_topic"
s.notify_type = true
s.auto_action_type = true
s.require_message = false
s.applies_to = %w[Post Chat::Message]
end
Flag.seed do |s|
s.id = 4
s.name = "inappropriate"
s.notify_type = true
s.auto_action_type = true
s.require_message = false
s.applies_to = %w[Post Topic Chat::Message]
end
Flag.seed do |s|
s.id = 8
s.name = "spam"
s.notify_type = true
s.auto_action_type = true
s.require_message = false
s.applies_to = %w[Post Topic Chat::Message]
end
Flag.seed do |s|
s.id = 10
s.name = "illegal"
s.notify_type = true
s.auto_action_type = false
s.require_message = true
s.applies_to = %w[Post Topic Chat::Message]
end
Flag.seed do |s|
s.id = 7
s.name = "notify_moderators"
s.notify_type = true
s.auto_action_type = false
s.require_message = true
s.applies_to = %w[Post Topic Chat::Message]
end
Flag.unscoped.seed do |s|
s.id = 9
s.name = "needs_approval"
s.notify_type = false
s.auto_action_type = false
s.require_message = false
s.score_type = true
s.applies_to = %w[]
end