mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
Add email_blacklist_regexp to site settings. Not implemented yet.
This commit is contained in:
parent
db0c73e874
commit
1635d8e553
|
@ -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?
|
||||
|
|
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue
Block a user