diff options
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 1c47d43f0..9b972b87e 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -14,7 +14,7 @@ import { | |||
14 | VideoTranscodingFPS | 14 | VideoTranscodingFPS |
15 | } from '../../shared/models' | 15 | } from '../../shared/models' |
16 | import { ActivityPubActorType } from '../../shared/models/activitypub' | 16 | import { ActivityPubActorType } from '../../shared/models/activitypub' |
17 | import { FollowState } from '../../shared/models/actors' | 17 | import { ActorImageType, FollowState } from '../../shared/models/actors' |
18 | import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' | 18 | import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' |
19 | import { VideoPlaylistPrivacy } from '../../shared/models/videos/playlist/video-playlist-privacy.model' | 19 | import { VideoPlaylistPrivacy } from '../../shared/models/videos/playlist/video-playlist-privacy.model' |
20 | import { VideoPlaylistType } from '../../shared/models/videos/playlist/video-playlist-type.model' | 20 | import { VideoPlaylistType } from '../../shared/models/videos/playlist/video-playlist-type.model' |
@@ -24,7 +24,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' | |||
24 | 24 | ||
25 | // --------------------------------------------------------------------------- | 25 | // --------------------------------------------------------------------------- |
26 | 26 | ||
27 | const LAST_MIGRATION_VERSION = 680 | 27 | const LAST_MIGRATION_VERSION = 685 |
28 | 28 | ||
29 | // --------------------------------------------------------------------------- | 29 | // --------------------------------------------------------------------------- |
30 | 30 | ||
@@ -633,15 +633,23 @@ const PREVIEWS_SIZE = { | |||
633 | height: 480, | 633 | height: 480, |
634 | minWidth: 400 | 634 | minWidth: 400 |
635 | } | 635 | } |
636 | const ACTOR_IMAGES_SIZE = { | 636 | const ACTOR_IMAGES_SIZE: { [key in ActorImageType]: { width: number, height: number }[]} = { |
637 | AVATARS: { | 637 | [ActorImageType.AVATAR]: [ |
638 | width: 120, | 638 | { |
639 | height: 120 | 639 | width: 120, |
640 | }, | 640 | height: 120 |
641 | BANNERS: { | 641 | }, |
642 | width: 1920, | 642 | { |
643 | height: 317 // 6/1 ratio | 643 | width: 48, |
644 | } | 644 | height: 48 |
645 | } | ||
646 | ], | ||
647 | [ActorImageType.BANNER]: [ | ||
648 | { | ||
649 | width: 1920, | ||
650 | height: 317 // 6/1 ratio | ||
651 | } | ||
652 | ] | ||
645 | } | 653 | } |
646 | 654 | ||
647 | const EMBED_SIZE = { | 655 | const EMBED_SIZE = { |