We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37003f9 commit 24d819aCopy full SHA for 24d819a
lib/discourse_automation/entry_point.rb
@@ -13,7 +13,10 @@ def self.inject(plugin)
13
.where(trigger: name, enabled: true)
14
.find_each do |automation|
15
maximum_trust_level = automation.trigger_field("maximum_trust_level")&.dig("value")
16
- if FirstAcceptedPostSolutionValidator.check(post, trust_level: maximum_trust_level)
+ if DiscourseSolved::FirstAcceptedPostSolutionValidator.check(
17
+ post,
18
+ trust_level: maximum_trust_level,
19
+ )
20
automation.trigger!(
21
"kind" => name,
22
"accepted_post_id" => post.id,
0 commit comments