sforkowany z mirror/soapbox
QuotedStatus: always display full media gallery
rodzic
fb9acf4d64
commit
335851b577
|
@ -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>
|
||||
);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue