From: Tom Hughes Date: Wed, 8 Feb 2012 16:08:45 +0000 (+0000) Subject: Block any address with more than one suspended user X-Git-Tag: live~5880 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/5b2d2ff2f0482c56b6e8541bab6de84a940b0a82?hp=f1316fa58e5cec92888cd83c16e4a4df0a1cdc2a Block any address with more than one suspended user --- diff --git a/script/update-spam-blocks b/script/update-spam-blocks index 381ef3c1a..8476fcb9d 100755 --- a/script/update-spam-blocks +++ b/script/update-spam-blocks @@ -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, })