Honor configuration.statuses.max_characters from /api/v2/instance (#39138)
This commit is contained in:
parent
efa729c6d4
commit
fd4a9c25dd
@ -58,7 +58,7 @@ const mapStateToProps = state => ({
|
|||||||
&& !state.getIn(['settings', 'dismissed_banners', PRIVATE_QUOTE_MODAL_ID]),
|
&& !state.getIn(['settings', 'dismissed_banners', PRIVATE_QUOTE_MODAL_ID]),
|
||||||
isInReply: state.getIn(['compose', 'in_reply_to']) !== null,
|
isInReply: state.getIn(['compose', 'in_reply_to']) !== null,
|
||||||
lang: state.getIn(['compose', 'language']),
|
lang: state.getIn(['compose', 'language']),
|
||||||
maxChars: state.getIn(['server', 'server', 'configuration', 'statuses', 'max_characters'], 500),
|
maxChars: state.getIn(['server', 'server', 'item', 'configuration', 'statuses', 'max_characters'], 500),
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch, props) => ({
|
const mapDispatchToProps = (dispatch, props) => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user