]> git.openstreetmap.org Git - rails.git/commit
Suspend users if their spam score gets too high
authorTom Hughes <tom@compton.nu>
Sat, 1 May 2010 16:03:18 +0000 (17:03 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 6 May 2010 16:18:34 +0000 (17:18 +0100)
commit980c2fa30197eca1a609342a75eb66b7068269d1
treea94d1bf0ad38cfbf27fd83449e03f5f8289672ec
parent5a54630b572d222b0abea05f3e19e1b1951f0aee
Suspend users if their spam score gets too high

Use an observer to watch all diary and user updates and, if the user
is not confirmed, chek their spam score and suspend then if it has got
too high.
app/models/spam_observer.rb [new file with mode: 0644]
config/application.yml
config/environment.rb