diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-20 15:36:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-20 15:36:43 +0100 |
commit | f8802489bbc2c0363b5668e47de7c35f573342e1 (patch) | |
tree | 526054fad5a7f944b008ac1a6e400dfbe66a1639 /server/initializers/constants.ts | |
parent | 1aabcae7e36bb113c2887bd7180dad2916ecaaf2 (diff) | |
download | PeerTube-f8802489bbc2c0363b5668e47de7c35f573342e1.tar.gz PeerTube-f8802489bbc2c0363b5668e47de7c35f573342e1.tar.zst PeerTube-f8802489bbc2c0363b5668e47de7c35f573342e1.zip |
Add isNSFW instance configuration key
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index c1be7f326..bb2c6765f 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -288,6 +288,7 @@ const CONFIG = { | |||
288 | get SHORT_DESCRIPTION () { return config.get<string>('instance.short_description') }, | 288 | get SHORT_DESCRIPTION () { return config.get<string>('instance.short_description') }, |
289 | get DESCRIPTION () { return config.get<string>('instance.description') }, | 289 | get DESCRIPTION () { return config.get<string>('instance.description') }, |
290 | get TERMS () { return config.get<string>('instance.terms') }, | 290 | get TERMS () { return config.get<string>('instance.terms') }, |
291 | get IS_NSFW () { return config.get<boolean>('instance.is_nsfw') }, | ||
291 | get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') }, | 292 | get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') }, |
292 | get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') }, | 293 | get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') }, |
293 | CUSTOMIZATIONS: { | 294 | CUSTOMIZATIONS: { |