]> git.openstreetmap.org Git - rails.git/commitdiff
Block any address with more than one suspended user
authorTom Hughes <tom@compton.nu>
Wed, 8 Feb 2012 16:08:45 +0000 (16:08 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 8 Feb 2012 16:08:45 +0000 (16:08 +0000)
script/update-spam-blocks

index 381ef3c1a335c0f9095287bef9290424f08fff22..8476fcb9dd75a2e4f9a4d2866c5ed6c8fa7415bb 100755 (executable)
@@ -12,7 +12,7 @@ addresses = User.count(
 )
 
 addresses.each do |address,count|
-  if count > 2
+  if count > 1
     acl = Acl.find(:first, :conditions => {
       :address => address,
     })