Skip to content

Commit 03699b8

Browse files
committed
prevent system post from updating waiting_since
1 parent 9124aab commit 03699b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module ::CommunityCustomFields
4747
end
4848

4949
on(:post_created) do |post, _opts, user|
50-
next unless post.archetype == "regular" && user.id > 0
50+
next unless post.archetype == 'regular' && post.post_type == 1 && user.id > 0
5151

5252
topic = post.topic
5353

0 commit comments

Comments
 (0)