QuotedStatus: always display full media gallery
This commit is contained in:
parent
fb9acf4d64
commit
335851b577
|
@ -5,7 +5,6 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
||||||
import { defineMessages, injectIntl, FormattedMessage, IntlShape, FormattedList } from 'react-intl';
|
import { defineMessages, injectIntl, FormattedMessage, IntlShape, FormattedList } from 'react-intl';
|
||||||
import { withRouter } from 'react-router-dom';
|
import { withRouter } from 'react-router-dom';
|
||||||
|
|
||||||
import AttachmentThumbs from 'soapbox/components/attachment-thumbs';
|
|
||||||
import StatusMedia from 'soapbox/components/status-media';
|
import StatusMedia from 'soapbox/components/status-media';
|
||||||
import { Stack, Text } from 'soapbox/components/ui';
|
import { Stack, Text } from 'soapbox/components/ui';
|
||||||
import AccountContainer from 'soapbox/containers/account_container';
|
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 = () => {
|
renderReplyMentions = () => {
|
||||||
const { status } = this.props;
|
const { status } = this.props;
|
||||||
|
|
||||||
|
@ -167,7 +147,7 @@ class QuotedStatus extends ImmutablePureComponent<IQuotedStatus> {
|
||||||
dangerouslySetInnerHTML={{ __html: status.contentHtml }}
|
dangerouslySetInnerHTML={{ __html: status.contentHtml }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{this.renderMedia()}
|
<StatusMedia status={status} />
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue