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 95924e4 commit d4f6d24Copy full SHA for d4f6d24
plugin.rb
@@ -45,7 +45,7 @@ module ::CommunityCustomFields
45
46
on(:topic_created) do |topic, _opts, user|
47
next unless topic.archetype == "regular"
48
- next unless user.id > 0
+ next if user.id <= 0
49
50
topic.custom_fields[:status] = "new"
51
@@ -59,7 +59,7 @@ module ::CommunityCustomFields
59
60
on(:post_created) do |post, _opts, user|
61
next unless post.archetype == "regular"
62
63
next unless post.post_type == 1 || post.post_type == 4
64
next if post.post_number == 1
65
0 commit comments