X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..674589ce2c196fa2c6d249e09e374e9ff090bb77:/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 ##