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 a669234 commit dadc2a5Copy full SHA for dadc2a5
plugin.rb
@@ -41,4 +41,14 @@ module ::CommunityCustomFields
41
topic.custom_fields[:assignee_id] = 0
42
topic.save_custom_fields
43
end
44
+
45
+ on(:post_created) do |post, _opts, user|
46
+ topic = post.topic
47
48
+ if (topic.custom_fields[:status] == "snoozed") && !user.admin
49
+ topic.custom_fields[:status] = "open"
50
+ topic.custom_fields[:snoozed_until] = nil
51
+ topic.save_custom_fields
52
+ end
53
54
0 commit comments