diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-10 12:26:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-11 08:48:20 +0200 |
commit | 8be1afa12b700b93ed92365cab05c0ef81d643aa (patch) | |
tree | 563369bded16d3612a631bb1a9b068b2bb76abe8 /server/initializers | |
parent | c7b0dacb28e3b5aa9f43a7a0eb683e2af9826cb9 (diff) | |
download | PeerTube-8be1afa12b700b93ed92365cab05c0ef81d643aa.tar.gz PeerTube-8be1afa12b700b93ed92365cab05c0ef81d643aa.tar.zst PeerTube-8be1afa12b700b93ed92365cab05c0ef81d643aa.zip |
Add ability to embed a video in Twitter
The instance should be whitelisted first
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker.ts | 3 | ||||
-rw-r--r-- | server/initializers/constants.ts | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts index 739f623c6..9bf53e940 100644 --- a/server/initializers/checker.ts +++ b/server/initializers/checker.ts | |||
@@ -29,7 +29,8 @@ function checkMissedConfig () { | |||
29 | 'user.video_quota', | 29 | 'user.video_quota', |
30 | 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads', | 30 | 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads', |
31 | 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', | 31 | 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', |
32 | 'instance.default_nsfw_policy' | 32 | 'instance.default_nsfw_policy', |
33 | 'services.twitter.username', 'services.twitter.whitelisted' | ||
33 | ] | 34 | ] |
34 | const miss: string[] = [] | 35 | const miss: string[] = [] |
35 | 36 | ||
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index c52c27c78..c4e8522c2 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -174,6 +174,12 @@ const CONFIG = { | |||
174 | get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, | 174 | get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, |
175 | get CSS () { return config.get<string>('instance.customizations.css') } | 175 | get CSS () { return config.get<string>('instance.customizations.css') } |
176 | } | 176 | } |
177 | }, | ||
178 | SERVICES: { | ||
179 | TWITTER: { | ||
180 | get USERNAME () { return config.get<string>('services.twitter.username') }, | ||
181 | get WHITELISTED () { return config.get<boolean>('services.twitter.whitelisted') } | ||
182 | } | ||
177 | } | 183 | } |
178 | } | 184 | } |
179 | 185 | ||