Update status length limit.

This commit is contained in:
Sunoru 2024-11-10 23:05:34 +00:00
parent 9adb96f3a1
commit a2000ad4f1
Signed by: sunoru
GPG key ID: 442B84461FD0355A
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ const mapStateToProps = state => ({
anyMedia: state.getIn(['compose', 'media_attachments']).size > 0,
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', 'configuration', 'statuses', 'max_characters'], 5000),
});
const mapDispatchToProps = (dispatch) => ({

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
class StatusLengthValidator < ActiveModel::Validator
MAX_CHARS = 500
MAX_CHARS = 5000
URL_PLACEHOLDER_CHARS = 23
URL_PLACEHOLDER = 'x' * 23