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 381ef3c..8476fcb 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,
     })