mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
Add sockpuppet spammer detection. Automatically flag posts if they are from new users (registered less than 24 hours ago) at the same IP address and one of them started the topic.
This commit is contained in:
@ -76,6 +76,8 @@ class PostCreator
|
||||
{ user: @user,
|
||||
limit_once_per: 24.hours,
|
||||
message_params: {domains: @post.linked_hosts.keys.join(', ')} } )
|
||||
else
|
||||
SpamRulesEnforcer.enforce!(@post)
|
||||
end
|
||||
|
||||
enqueue_jobs
|
||||
|
Reference in New Issue
Block a user