From bedc9ef3faadda64478bde5168022e3c2d02ace8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 19 Jul 2021 23:14:31 +0200 Subject: [PATCH 1/2] Use description limits from Pleroma MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/compose/components/upload.js | 4 ++-- app/soapbox/features/compose/containers/upload_container.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/soapbox/features/compose/components/upload.js b/app/soapbox/features/compose/components/upload.js index 7fd373e7b..14b8ba5c9 100644 --- a/app/soapbox/features/compose/components/upload.js +++ b/app/soapbox/features/compose/components/upload.js @@ -92,7 +92,7 @@ class Upload extends ImmutablePureComponent { } render() { - const { intl, media } = this.props; + const { intl, media, descriptionLimit } = this.props; const active = this.state.hovered || this.state.focused; const description = this.state.dirtyDescription || (this.state.dirtyDescription !== '' && media.get('description')) || ''; const focusX = media.getIn(['meta', 'focus', 'x']); @@ -125,7 +125,7 @@ class Upload extends ImmutablePureComponent {