diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-16 10:05:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-16 10:07:26 +0200 |
commit | d8755eed1e452d2efbfc983af0e9d228d152bf6b (patch) | |
tree | db94181e7c993f67919f4ea2bb12f08401c437c2 /server/initializers | |
parent | 334ddfa47120ae53bc2643792ec5e1065a4d1141 (diff) | |
download | PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.tar.gz PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.tar.zst PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.zip |
Add oembed endpoint
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index b11575b34..6218644cf 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -295,8 +295,14 @@ const STATIC_PATHS = { | |||
295 | let STATIC_MAX_AGE = '30d' | 295 | let STATIC_MAX_AGE = '30d' |
296 | 296 | ||
297 | // Videos thumbnail size | 297 | // Videos thumbnail size |
298 | const THUMBNAILS_SIZE = '200x110' | 298 | const THUMBNAILS_SIZE = { |
299 | const PREVIEWS_SIZE = '640x480' | 299 | width: 200, |
300 | height: 110 | ||
301 | } | ||
302 | const PREVIEWS_SIZE = { | ||
303 | width: 640, | ||
304 | height: 480 | ||
305 | } | ||
300 | 306 | ||
301 | // Sub folders of cache directory | 307 | // Sub folders of cache directory |
302 | const CACHE = { | 308 | const CACHE = { |
@@ -314,7 +320,7 @@ const USER_ROLES: { [ id: string ]: UserRole } = { | |||
314 | 320 | ||
315 | // --------------------------------------------------------------------------- | 321 | // --------------------------------------------------------------------------- |
316 | 322 | ||
317 | const OPENGRAPH_COMMENT = '<!-- open graph tags -->' | 323 | const OPENGRAPH_AND_OEMBED_COMMENT = '<!-- open graph and oembed tags -->' |
318 | 324 | ||
319 | // --------------------------------------------------------------------------- | 325 | // --------------------------------------------------------------------------- |
320 | 326 | ||
@@ -344,7 +350,7 @@ export { | |||
344 | JOBS_FETCHING_INTERVAL, | 350 | JOBS_FETCHING_INTERVAL, |
345 | LAST_MIGRATION_VERSION, | 351 | LAST_MIGRATION_VERSION, |
346 | OAUTH_LIFETIME, | 352 | OAUTH_LIFETIME, |
347 | OPENGRAPH_COMMENT, | 353 | OPENGRAPH_AND_OEMBED_COMMENT, |
348 | PAGINATION_COUNT_DEFAULT, | 354 | PAGINATION_COUNT_DEFAULT, |
349 | PODS_SCORE, | 355 | PODS_SCORE, |
350 | PREVIEWS_SIZE, | 356 | PREVIEWS_SIZE, |