Add a message to flags created because of the newuser_spam_host_threshold site setting

This commit is contained in:
Neil Lalonde 2013-10-17 15:08:11 -04:00
parent 3927913a7e
commit 0eaf32db45
2 changed files with 3 additions and 1 deletions

View File

@ -456,7 +456,7 @@ class User < ActiveRecord::Base
admin = Discourse.system_user
topic_links.includes(:post).each do |tl|
begin
PostAction.act(admin, tl.post, PostActionType.types[:spam])
PostAction.act(admin, tl.post, PostActionType.types[:spam], message: I18n.t('flag_reason.spam_hosts'))
rescue PostAction::AlreadyActed
# If the user has already acted, just ignore it
end

View File

@ -1162,3 +1162,5 @@ en:
flag_reason:
sockpuppet: "A new user created a topic, and another new user at the same IP address replied. See the flag_sockpuppets site setting."
spam_hosts: "This user tried to create multiple posts with links to the same domain. See the newuser_spam_host_threshold site setting."