mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
slightly better automatic flag reason messages
This commit is contained in:
@@ -102,6 +102,7 @@ class PostCreator
|
||||
setup_post
|
||||
|
||||
return true if skip_validations?
|
||||
|
||||
if @post.has_host_spam?
|
||||
@spam = true
|
||||
errors[:base] << I18n.t(:spamming_host)
|
||||
|
||||
Reference in New Issue
Block a user