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 2440999 commit 9124aabCopy full SHA for 9124aab
plugin.rb
@@ -38,7 +38,7 @@ module ::CommunityCustomFields
38
end
39
40
on(:topic_created) do |topic, _opts, user|
41
- return unless topic.archetype == "regular" && user.id > 0
+ next unless topic.archetype == "regular" && user.id > 0
42
43
topic.custom_fields[:assignee_id] = 0
44
topic.custom_fields[:status] = "new"
@@ -47,7 +47,7 @@ module ::CommunityCustomFields
47
48
49
on(:post_created) do |post, _opts, user|
50
- return unless post.archetype == "regular" && user.id > 0
+ next unless post.archetype == "regular" && user.id > 0
51
52
topic = post.topic
53
0 commit comments