]> cat aescling's git repositories - mastodon.git/commit
Change spam check to apply to local accounts and add a threshold (#11806)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 18 Sep 2019 10:53:13 +0000 (12:53 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2019 10:53:13 +0000 (12:53 +0200)
commit4f6af87906175d9ea802ef0c6f050388eac890fa
tree8bf6f80bd210420debb05767a9a616a17bb42254
parent577706987d2e09e598130d37fb9a52cd4a6510ea
Change spam check to apply to local accounts and add a threshold (#11806)

Instead of detecting spam on first duplicate message, add a
threshold of 5 such messages to reduce false positives
app/lib/activitypub/activity/create.rb
app/lib/spam_check.rb
app/services/process_mentions_service.rb
spec/lib/spam_check_spec.rb