diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-03 11:36:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-03 11:36:03 +0100 |
commit | e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf (patch) | |
tree | c29952bef32c5e95c9409724f12d902dcdd8d39e /server/initializers/constants.ts | |
parent | 01de67b9a4fcdf01102ccc3cb7dc24beebf6c7ea (diff) | |
download | PeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.tar.gz PeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.tar.zst PeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.zip |
Automatically resize avatars
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index aefb91537..d9b21b389 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -316,6 +316,10 @@ const PREVIEWS_SIZE = { | |||
316 | width: 560, | 316 | width: 560, |
317 | height: 315 | 317 | height: 315 |
318 | } | 318 | } |
319 | const AVATARS_SIZE = { | ||
320 | width: 120, | ||
321 | height: 120 | ||
322 | } | ||
319 | 323 | ||
320 | const EMBED_SIZE = { | 324 | const EMBED_SIZE = { |
321 | width: 560, | 325 | width: 560, |
@@ -355,6 +359,7 @@ CONFIG.WEBSERVER.HOST = sanitizeHost(CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WE | |||
355 | 359 | ||
356 | export { | 360 | export { |
357 | API_VERSION, | 361 | API_VERSION, |
362 | AVATARS_SIZE, | ||
358 | ACCEPT_HEADERS, | 363 | ACCEPT_HEADERS, |
359 | BCRYPT_SALT_SIZE, | 364 | BCRYPT_SALT_SIZE, |
360 | CACHE, | 365 | CACHE, |