mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:36:40 +08:00
slightly better automatic flag reason messages
This commit is contained in:
parent
7a079f6de5
commit
2194ccec6e
6 changed files with 21 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue