Use Mastodon defaults for initial state
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -5,6 +5,7 @@ describe('instance reducer', () => {
|
||||
it('should return the initial state', () => {
|
||||
expect(reducer(undefined, {})).toEqual(ImmutableMap({
|
||||
max_toot_chars: 500,
|
||||
description_limit: 1500,
|
||||
poll_limits: ImmutableMap({
|
||||
max_expiration: 2629746,
|
||||
max_option_chars: 25,
|
||||
|
||||
@ -26,6 +26,7 @@ const nodeinfoToInstance = nodeinfo => {
|
||||
// Set Mastodon defaults, overridden by Pleroma servers
|
||||
const initialState = ImmutableMap({
|
||||
max_toot_chars: 500,
|
||||
description_limit: 1500,
|
||||
poll_limits: ImmutableMap({
|
||||
max_expiration: 2629746,
|
||||
max_option_chars: 25,
|
||||
|
||||
Reference in New Issue
Block a user