Add email_blacklist_regexp to site settings. Not implemented yet.

This commit is contained in:
Neil Lalonde 2013-02-08 16:31:05 -05:00
parent db0c73e874
commit 1635d8e553
2 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,8 @@ class SiteSetting < ActiveRecord::Base
setting(:body_min_entropy, 7)
setting(:max_word_length, 30)
# Ways to catch griefers and other nasties
setting(:email_blacklist_regexp, '')
def self.call_mothership?
self.enforce_global_nicknames? and self.discourse_org_access_key.present?

View File

@ -307,6 +307,8 @@ en:
title_min_entropy: "The minimum entropy for a topic title"
body_min_entropy: "The minimum entropy for post body"
email_blacklist_regexp: "A regexp that finds email addresses to block"
# This section is exported to the javascript for i18n in the admin section
admin_js:
type_to_filter: "Type to Filter..."