From 4d22bdfe2854002854125b190de27906a5dd560e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 17 May 2021 17:02:23 -0500 Subject: [PATCH] Fix video meta dimensions --- app/soapbox/components/status.js | 2 +- app/soapbox/features/admin/components/report_status.js | 2 +- app/soapbox/features/report/components/status_check_box.js | 2 +- app/soapbox/features/status/components/detailed_status.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/soapbox/components/status.js b/app/soapbox/components/status.js index 95abc4eb1..78b170bfe 100644 --- a/app/soapbox/components/status.js +++ b/app/soapbox/components/status.js @@ -360,7 +360,7 @@ class Status extends ImmutablePureComponent { blurhash={video.get('blurhash')} src={video.get('url')} alt={video.get('description')} - aspectRatio={video.getIn(['meta', 'small', 'aspect'])} + aspectRatio={video.getIn(['meta', 'original', 'aspect'])} width={this.props.cachedMediaWidth} height={285} inline diff --git a/app/soapbox/features/admin/components/report_status.js b/app/soapbox/features/admin/components/report_status.js index 63c9a3a66..f34574cdf 100644 --- a/app/soapbox/features/admin/components/report_status.js +++ b/app/soapbox/features/admin/components/report_status.js @@ -55,7 +55,7 @@ class ReportStatus extends ImmutablePureComponent { blurhash={video.get('blurhash')} src={video.get('url')} alt={video.get('description')} - aspectRatio={video.getIn(['meta', 'small', 'aspect'])} + aspectRatio={video.getIn(['meta', 'original', 'aspect'])} width={239} height={110} inline diff --git a/app/soapbox/features/report/components/status_check_box.js b/app/soapbox/features/report/components/status_check_box.js index 1e781fdd6..c2f2199f3 100644 --- a/app/soapbox/features/report/components/status_check_box.js +++ b/app/soapbox/features/report/components/status_check_box.js @@ -38,7 +38,7 @@ export default class StatusCheckBox extends React.PureComponent { blurhash={video.get('blurhash')} src={video.get('url')} alt={video.get('description')} - aspectRatio={video.getIn(['meta', 'small', 'aspect'])} + aspectRatio={video.getIn(['meta', 'original', 'aspect'])} width={239} height={110} inline diff --git a/app/soapbox/features/status/components/detailed_status.js b/app/soapbox/features/status/components/detailed_status.js index 5735589f5..5cf1ef79a 100644 --- a/app/soapbox/features/status/components/detailed_status.js +++ b/app/soapbox/features/status/components/detailed_status.js @@ -115,7 +115,7 @@ export default class DetailedStatus extends ImmutablePureComponent { blurhash={video.get('blurhash')} src={video.get('url')} alt={video.get('description')} - aspectRatio={video.getIn(['meta', 'small', 'aspect'])} + aspectRatio={video.getIn(['meta', 'original', 'aspect'])} width={300} height={150} inline