]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/spam_observer.rb
Look up names and emails case insensitively for authentication
[rails.git] / app / models / spam_observer.rb
index 21561f6718fd330704d528de86a2805ddbbbc262..8b52121114581ce211145fbaac539111a218baf5 100644 (file)
@@ -8,7 +8,7 @@ class SpamObserver < ActiveRecord::Observer
     when record.is_a?(DiaryComment): user = record.user
     end
 
-    if user.status == "active" and user.spam_score > APP_CONFIG['spam_threshold']
+    if user.status == "active" and user.spam_score > SPAM_THRESHOLD
       user.update_attributes(:status => "suspended")
     end
   end