2
0
Fork 0
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:
Régis Hanol 2016-04-25 23:03:17 +02:00
parent 7a079f6de5
commit 2194ccec6e
6 changed files with 21 additions and 19 deletions

View file

@ -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)