aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-03 11:36:03 +0100
committerChocobozzz <me@florianbigard.com>2018-01-03 11:36:03 +0100
commite8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf (patch)
treec29952bef32c5e95c9409724f12d902dcdd8d39e /server/initializers
parent01de67b9a4fcdf01102ccc3cb7dc24beebf6c7ea (diff)
downloadPeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.tar.gz
PeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.tar.zst
PeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.zip
Automatically resize avatars
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts5
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}
319const AVATARS_SIZE = {
320 width: 120,
321 height: 120
322}
319 323
320const EMBED_SIZE = { 324const EMBED_SIZE = {
321 width: 560, 325 width: 560,
@@ -355,6 +359,7 @@ CONFIG.WEBSERVER.HOST = sanitizeHost(CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WE
355 359
356export { 360export {
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,