mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Add a message to flags created because of the newuser_spam_host_threshold site setting
This commit is contained in:
parent
3927913a7e
commit
0eaf32db45
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
||||
|
|
Loading…
Reference in a new issue