mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Fixes #266
This commit is contained in:
+10
-8
@@ -6,13 +6,6 @@ const MODERATION_OPTIONS = [
|
||||
'POST'
|
||||
];
|
||||
|
||||
const WordlistSchema = new Schema({
|
||||
banned: [String],
|
||||
suspect: [String]
|
||||
}, {
|
||||
_id: false
|
||||
});
|
||||
|
||||
/**
|
||||
* SettingSchema manages application settings that get used on front and backend.
|
||||
* @type {Schema}
|
||||
@@ -48,7 +41,16 @@ const SettingSchema = new Schema({
|
||||
type: String,
|
||||
default: 'Expired'
|
||||
},
|
||||
wordlist: WordlistSchema,
|
||||
wordlist: {
|
||||
banned: {
|
||||
type: Array,
|
||||
default: []
|
||||
},
|
||||
suspect: {
|
||||
type: Array,
|
||||
default: []
|
||||
}
|
||||
},
|
||||
charCount: {
|
||||
type: Number,
|
||||
default: 5000
|
||||
|
||||
Reference in New Issue
Block a user