Revert "increase the MAX_DESCRIPTION_LENGTH of media_attachment"

This reverts commit 58f6e4c36a.
This commit is contained in:
bgme 2024-01-19 07:13:00 +08:00
parent 58f6e4c36a
commit 44c6d1d464
2 changed files with 3 additions and 3 deletions

View file

@ -374,12 +374,12 @@ class FocalPointModal extends ImmutablePureComponent {
>
<FormattedMessage id='upload_modal.detect_text' defaultMessage='Detect text from picture' />
</button>
<CharacterCounter max={65536} text={detecting ? '' : description} />
<CharacterCounter max={1500} text={detecting ? '' : description} />
</div>
<Button
type='submit'
disabled={!dirty || detecting || isUploadingThumbnail || length(description) > 65536 || is_changing_upload}
disabled={!dirty || detecting || isUploadingThumbnail || length(description) > 1500 || is_changing_upload}
text={intl.formatMessage(is_changing_upload ? messages.applying : messages.apply)}
/>
</form>