[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:
parent
ae9b00dca8
commit
f69f8fbb73
@ -80,7 +80,7 @@ const mapStateToProps = state => ({
|
|||||||
lang: state.getIn(['compose', 'language']),
|
lang: state.getIn(['compose', 'language']),
|
||||||
sideArm: sideArmPrivacy(state),
|
sideArm: sideArmPrivacy(state),
|
||||||
media: state.getIn(['compose', 'media_attachments']),
|
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) => ({
|
const mapDispatchToProps = (dispatch, props) => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user