Browse Source

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.
closed-social-glitch-2
Thibaut Girka 6 years ago
parent
commit
53eab4470d
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      app/javascript/flavours/glitch/components/status_content.js

+ 0
- 4
app/javascript/flavours/glitch/components/status_content.js View File

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

Loading…
Cancel
Save