Instance normalizer: add default stats, remove default media_attachments
This commit is contained in:
parent
9537c87909
commit
f75c0738a7
|
@ -8,13 +8,7 @@ describe('normalizeInstance()', () => {
|
||||||
approval_required: false,
|
approval_required: false,
|
||||||
contact_account: {},
|
contact_account: {},
|
||||||
configuration: {
|
configuration: {
|
||||||
media_attachments: {
|
media_attachments: {},
|
||||||
image_size_limit: 10485760,
|
|
||||||
image_matrix_limit: 16777216,
|
|
||||||
video_size_limit: 41943040,
|
|
||||||
video_frame_rate_limit: 60,
|
|
||||||
video_matrix_limit: 2304000,
|
|
||||||
},
|
|
||||||
polls: {
|
polls: {
|
||||||
max_options: 4,
|
max_options: 4,
|
||||||
max_characters_per_option: 25,
|
max_characters_per_option: 25,
|
||||||
|
@ -48,7 +42,11 @@ describe('normalizeInstance()', () => {
|
||||||
registrations: false,
|
registrations: false,
|
||||||
rules: [],
|
rules: [],
|
||||||
short_description: '',
|
short_description: '',
|
||||||
stats: {},
|
stats: {
|
||||||
|
domain_count: 0,
|
||||||
|
status_count: 0,
|
||||||
|
user_count: 0,
|
||||||
|
},
|
||||||
title: '',
|
title: '',
|
||||||
thumbnail: '',
|
thumbnail: '',
|
||||||
uri: '',
|
uri: '',
|
||||||
|
|
|
@ -13,13 +13,7 @@ const InstanceRecord = ImmutableRecord({
|
||||||
approval_required: false,
|
approval_required: false,
|
||||||
contact_account: ImmutableMap(),
|
contact_account: ImmutableMap(),
|
||||||
configuration: ImmutableMap({
|
configuration: ImmutableMap({
|
||||||
media_attachments: ImmutableMap({
|
media_attachments: ImmutableMap(),
|
||||||
image_size_limit: 10485760,
|
|
||||||
image_matrix_limit: 16777216,
|
|
||||||
video_size_limit: 41943040,
|
|
||||||
video_frame_rate_limit: 60,
|
|
||||||
video_matrix_limit: 2304000,
|
|
||||||
}),
|
|
||||||
polls: ImmutableMap({
|
polls: ImmutableMap({
|
||||||
max_options: 4,
|
max_options: 4,
|
||||||
max_characters_per_option: 25,
|
max_characters_per_option: 25,
|
||||||
|
@ -53,7 +47,11 @@ const InstanceRecord = ImmutableRecord({
|
||||||
registrations: false,
|
registrations: false,
|
||||||
rules: ImmutableList(),
|
rules: ImmutableList(),
|
||||||
short_description: '',
|
short_description: '',
|
||||||
stats: ImmutableMap(),
|
stats: ImmutableMap({
|
||||||
|
domain_count: 0,
|
||||||
|
status_count: 0,
|
||||||
|
user_count: 0,
|
||||||
|
}),
|
||||||
title: '',
|
title: '',
|
||||||
thumbnail: '',
|
thumbnail: '',
|
||||||
uri: '',
|
uri: '',
|
||||||
|
|
Loading…
Reference in New Issue