QuotedStatus: always display full media gallery

dnd
Alex Gleason 2022-05-31 13:21:07 -05:00
rodzic fb9acf4d64
commit 335851b577
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 21 usunięć

Wyświetl plik

@ -5,7 +5,6 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage, IntlShape, FormattedList } from 'react-intl';
import { withRouter } from 'react-router-dom';
import AttachmentThumbs from 'soapbox/components/attachment-thumbs';
import StatusMedia from 'soapbox/components/status-media';
import { Stack, Text } from 'soapbox/components/ui';
import AccountContainer from 'soapbox/containers/account_container';
@ -51,25 +50,6 @@ class QuotedStatus extends ImmutablePureComponent<IQuotedStatus> {
}
}
renderMedia = () => {
const { status } = this.props;
if (!status) return null;
const { size } = status.media_attachments;
if (size > 1) {
return (
<AttachmentThumbs
media={status.media_attachments}
sensitive={status.sensitive}
/>
);
}
return (
<StatusMedia status={status} />
);
}
renderReplyMentions = () => {
const { status } = this.props;
@ -167,7 +147,7 @@ class QuotedStatus extends ImmutablePureComponent<IQuotedStatus> {
dangerouslySetInnerHTML={{ __html: status.contentHtml }}
/>
{this.renderMedia()}
<StatusMedia status={status} />
</Stack>
);