mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
fix logic
This commit is contained in:
parent
9147af1d62
commit
c5238026a9
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class PostCreator
|
|||
BadgeGranter.queue_badge_grant(Badge::Trigger::PostRevision, post: @post)
|
||||
end
|
||||
|
||||
if @post && (@post.errors.present? || @spam)
|
||||
if @post && @spam
|
||||
handle_spam unless @opts[:import_mode]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue