-
-
+
+
@@ -521,7 +521,7 @@ class Audio extends React.PureComponent {
download
target='_blank'
>
-
+
diff --git a/app/soapbox/features/status/components/detailed_status.js b/app/soapbox/features/status/components/detailed_status.js
index 1f0809132..c19d092e8 100644
--- a/app/soapbox/features/status/components/detailed_status.js
+++ b/app/soapbox/features/status/components/detailed_status.js
@@ -123,16 +123,18 @@ export default class DetailedStatus extends ImmutablePureComponent {
/>
);
} else if (size === 1 && status.getIn(['media_attachments', 0, 'type']) === 'audio' && status.get('media_attachments').size === 1) {
- const audio = status.getIn(['media_attachments', 0]);
+ const attachment = status.getIn(['media_attachments', 0]);
media = (
);
} else {
diff --git a/app/soapbox/features/ui/components/media_modal.js b/app/soapbox/features/ui/components/media_modal.js
index e8bdd58de..5cdfabd3b 100644
--- a/app/soapbox/features/ui/components/media_modal.js
+++ b/app/soapbox/features/ui/components/media_modal.js
@@ -159,65 +159,65 @@ class MediaModal extends ImmutablePureComponent {
return false;
}).toArray();
- const content = media.map((image) => {
- const width = image.getIn(['meta', 'original', 'width']) || null;
- const height = image.getIn(['meta', 'original', 'height']) || null;
+ const content = media.map(attachment => {
+ const width = attachment.getIn(['meta', 'original', 'width']) || null;
+ const height = attachment.getIn(['meta', 'original', 'height']) || null;
const link = (status && account &&
);
- if (image.get('type') === 'image') {
+ if (attachment.get('type') === 'image') {
return (
);
- } else if (image.get('type') === 'video') {
+ } else if (attachment.get('type') === 'video') {
const { time } = this.props;
return (
);
- } else if (image.get('type') === 'audio') {
- const { time } = this.props;
-
+ } else if (attachment.get('type') === 'audio') {
return (
);
- } else if (image.get('type') === 'gifv') {
+ } else if (attachment.get('type') === 'gifv') {
return (
);