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 76a7352 commit ec0b782Copy full SHA for ec0b782
plugin.rb
@@ -47,7 +47,7 @@ module ::CommunityCustomFields
47
on(:post_created) do |post, _opts, user|
48
topic = post.topic
49
50
- if user.admin
+ if user.admin && user.id > 0
51
# check if user is an admin and update the `waiting_since` field, if so
52
topic.custom_fields[:waiting_since] = Time.now.utc
53
topic.save_custom_fields
0 commit comments