diff --git a/app/soapbox/__fixtures__/truthsocial-status-in-moderation.json b/app/soapbox/__fixtures__/truthsocial-status-in-moderation.json
index e9402876f..7613ebd93 100644
--- a/app/soapbox/__fixtures__/truthsocial-status-in-moderation.json
+++ b/app/soapbox/__fixtures__/truthsocial-status-in-moderation.json
@@ -82,4 +82,4 @@
"emojis": [],
"card": null,
"poll": null
-}
+}
\ No newline at end of file
diff --git a/app/soapbox/components/media_gallery.js b/app/soapbox/components/media_gallery.js
index 22ed2473d..7bbbbd5b7 100644
--- a/app/soapbox/components/media_gallery.js
+++ b/app/soapbox/components/media_gallery.js
@@ -7,7 +7,6 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { getSettings } from 'soapbox/actions/settings';
-import { getSoapboxConfig } from 'soapbox/actions/soapbox';
import Blurhash from 'soapbox/components/blurhash';
import Icon from 'soapbox/components/icon';
import StillImage from 'soapbox/components/still_image';
@@ -264,14 +263,9 @@ class Item extends React.PureComponent {
}
-const mapStateToMediaGalleryProps = state => {
- const { links } = getSoapboxConfig(state);
-
- return {
- displayMedia: getSettings(state).get('displayMedia'),
- links,
- };
-};
+const mapStateToMediaGalleryProps = state => ({
+ displayMedia: getSettings(state).get('displayMedia'),
+});
export default @connect(mapStateToMediaGalleryProps)
@injectIntl
@@ -291,7 +285,6 @@ class MediaGallery extends React.PureComponent {
onToggleVisibility: PropTypes.func,
displayMedia: PropTypes.string,
compact: PropTypes.bool,
- links: ImmutablePropTypes.map,
};
static defaultProps = {
@@ -575,7 +568,7 @@ class MediaGallery extends React.PureComponent {
}
render() {
- const { media, intl, sensitive, compact, inReview, links } = this.props;
+ const { media, intl, sensitive, compact } = this.props;
const { visible } = this.state;
const sizeData = this.getSizeData(media.size);
@@ -594,22 +587,14 @@ class MediaGallery extends React.PureComponent {
/>
));
- let warning, summary;
+ let warning;
if (sensitive) {
warning = ;
- } else if (inReview) {
- warning = ;
} else {
warning = ;
}
- if (inReview) {
- summary = ;
- } else {
- summary = ;
- }
-
return (
- {(sensitive || inReview) && (
+ {sensitive && (
(visible || compact) ? (