X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/303e5d3eb99284ab4fa41be85f831333f2154b0d..7f955a4aca277350a70bb95f0ca97e64d7d808c4:/app/models/spam_observer.rb?ds=sidebyside diff --git a/app/models/spam_observer.rb b/app/models/spam_observer.rb index 21561f671..8b5212111 100644 --- a/app/models/spam_observer.rb +++ b/app/models/spam_observer.rb @@ -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