X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..a83030dab7512c4b2848e777f7a7dbff456774b3:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 7a8414ec0..9eeb98290 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -277,9 +277,7 @@ class User < ActiveRecord::Base ## # perform a spam check on a user def spam_check - if status == "active" && spam_score > SPAM_THRESHOLD - update(:status => "suspended") - end + update(:status => "suspended") if status == "active" && spam_score > SPAM_THRESHOLD end ##