[Glitch] Honor configuration.statuses.max_characters from /api/v2/instance

Port fd4a9c25dda80699055f3fcfbb8e28395ff3bbc8 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
zunda 2026-05-21 23:21:29 -10:00 committed by Claire
parent ae9b00dca8
commit f69f8fbb73

View File

@ -80,7 +80,7 @@ const mapStateToProps = state => ({
lang: state.getIn(['compose', 'language']),
sideArm: sideArmPrivacy(state),
media: state.getIn(['compose', 'media_attachments']),
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) => ({