mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
fix logic
This commit is contained in:
parent
9147af1d62
commit
c5238026a9
@ -81,7 +81,7 @@ class PostCreator
|
|||||||
BadgeGranter.queue_badge_grant(Badge::Trigger::PostRevision, post: @post)
|
BadgeGranter.queue_badge_grant(Badge::Trigger::PostRevision, post: @post)
|
||||||
end
|
end
|
||||||
|
|
||||||
if @post && (@post.errors.present? || @spam)
|
if @post && @spam
|
||||||
handle_spam unless @opts[:import_mode]
|
handle_spam unless @opts[:import_mode]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user