Honor configuration.statuses.max_characters from /api/v2/instance (#39138)

This commit is contained in:
zunda 2026-05-21 23:21:29 -10:00 committed by GitHub
parent efa729c6d4
commit fd4a9c25dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ const mapStateToProps = state => ({
&& !state.getIn(['settings', 'dismissed_banners', PRIVATE_QUOTE_MODAL_ID]),
isInReply: state.getIn(['compose', 'in_reply_to']) !== null,
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) => ({