mirror of
https://github.com/discourse/discourse.git
synced 2025-09-11 21:04:42 +08:00
Show which domains were used in the spam_post_blocked notification
This commit is contained in:
parent
90aaa27b98
commit
827680766e
2 changed files with 7 additions and 1 deletions
|
@ -75,7 +75,11 @@ class PostCreator
|
|||
end
|
||||
|
||||
if @spam
|
||||
GroupMessage.create( Group[:moderators].name, :spam_post_blocked, {user: @user, limit_once_per: 24.hours} )
|
||||
GroupMessage.create( Group[:moderators].name,
|
||||
:spam_post_blocked,
|
||||
{ user: @user,
|
||||
limit_once_per: 24.hours,
|
||||
message_params: {domains: @post.linked_hosts.keys.join(', ')} } )
|
||||
end
|
||||
|
||||
enqueue_jobs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue