mirror of
https://github.com/discourse/discourse.git
synced 2024-12-27 09:43:52 +08:00
3d4faf3272
Automation (previously known as discourse-automation) is now a core plugin.
11 lines
403 B
Ruby
11 lines
403 B
Ruby
# frozen_string_literal: true
|
|
|
|
DiscourseAutomation::Triggerable.add(DiscourseAutomation::Triggers::PM_CREATED) do
|
|
field :restricted_user, component: :user
|
|
field :restricted_group, component: :group
|
|
field :ignore_staff, component: :boolean
|
|
field :ignore_automated, component: :boolean
|
|
field :ignore_group_members, component: :boolean
|
|
field :valid_trust_levels, component: :"trust-levels"
|
|
end
|