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/controllers/api | |
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/controllers/api')
-rw-r--r-- | server/controllers/api/config.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index e47b71f44..12074a80e 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -161,6 +161,12 @@ function customConfig (): CustomConfig { | |||
161 | javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT | 161 | javascript: CONFIG.INSTANCE.CUSTOMIZATIONS.JAVASCRIPT |
162 | } | 162 | } |
163 | }, | 163 | }, |
164 | services: { | ||
165 | twitter: { | ||
166 | username: CONFIG.SERVICES.TWITTER.USERNAME, | ||
167 | whitelisted: CONFIG.SERVICES.TWITTER.WHITELISTED | ||
168 | } | ||
169 | }, | ||
164 | cache: { | 170 | cache: { |
165 | previews: { | 171 | previews: { |
166 | size: CONFIG.CACHE.PREVIEWS.SIZE | 172 | size: CONFIG.CACHE.PREVIEWS.SIZE |