Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
mastofe
Commits
0aafacfb
Verified
Commit
0aafacfb
authored
Nov 14, 2017
by
lain
Committed by
Haelwenn
May 20, 2020
Browse files
Handle character limit in initial state in frontend.
parent
ca704f09
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/javascript/flavours/glitch/util/initial_state.js
View file @
0aafacfb
...
@@ -21,7 +21,7 @@ export const favouriteModal = getMeta('favourite_modal');
...
@@ -21,7 +21,7 @@ export const favouriteModal = getMeta('favourite_modal');
export
const
deleteModal
=
getMeta
(
'
delete_modal
'
);
export
const
deleteModal
=
getMeta
(
'
delete_modal
'
);
export
const
me
=
getMeta
(
'
me
'
);
export
const
me
=
getMeta
(
'
me
'
);
export
const
searchEnabled
=
getMeta
(
'
search_enabled
'
);
export
const
searchEnabled
=
getMeta
(
'
search_enabled
'
);
export
const
maxChars
=
(
initialState
&&
initialState
.
max_toot_chars
)
||
500
;
export
const
maxChars
=
getMeta
(
'
max_toot_chars
'
)
||
500
;
export
const
pollLimits
=
(
initialState
&&
initialState
.
poll_limits
);
export
const
pollLimits
=
(
initialState
&&
initialState
.
poll_limits
);
export
const
invitesEnabled
=
getMeta
(
'
invites_enabled
'
);
export
const
invitesEnabled
=
getMeta
(
'
invites_enabled
'
);
export
const
version
=
getMeta
(
'
version
'
);
export
const
version
=
getMeta
(
'
version
'
);
...
...
app/javascript/mastodon/initial_state.js
View file @
0aafacfb
...
@@ -12,7 +12,7 @@ export const boostModal = getMeta('boost_modal');
...
@@ -12,7 +12,7 @@ export const boostModal = getMeta('boost_modal');
export
const
deleteModal
=
getMeta
(
'
delete_modal
'
);
export
const
deleteModal
=
getMeta
(
'
delete_modal
'
);
export
const
me
=
getMeta
(
'
me
'
);
export
const
me
=
getMeta
(
'
me
'
);
export
const
searchEnabled
=
getMeta
(
'
search_enabled
'
);
export
const
searchEnabled
=
getMeta
(
'
search_enabled
'
);
export
const
maxChars
=
(
initialState
&&
initialState
.
max_toot_chars
)
||
500
;
export
const
maxChars
=
getMeta
(
'
max_toot_chars
'
)
||
500
;
export
const
invitesEnabled
=
getMeta
(
'
invites_enabled
'
);
export
const
invitesEnabled
=
getMeta
(
'
invites_enabled
'
);
export
const
repository
=
getMeta
(
'
repository
'
);
export
const
repository
=
getMeta
(
'
repository
'
);
export
const
source_url
=
getMeta
(
'
source_url
'
);
export
const
source_url
=
getMeta
(
'
source_url
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment