Render toots with empty contents

This is necessary to display toots with media but otherwise no contents,
as glitch-soc displays the media as a child of StatusContent, unlike
Mastodon.
This commit is contained in:
Thibaut Girka 2018-03-28 20:57:25 +02:00
parent e6e537d002
commit 4975cee02f

View file

@ -131,10 +131,6 @@ export default class StatusContent extends React.PureComponent {
disabled,
} = this.props;
if (status.get('content').length === 0) {
return null;
}
const hidden = this.props.setExpansion ? !this.props.expanded : this.state.hidden;
const content = { __html: status.get('contentHtml') };