diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-03-28 20:57:25 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-03-28 21:13:45 +0200 |
commit | 53eab4470dffccae7c8069f88ddfdc7b58d8126f (patch) | |
tree | d0d164a68219bc1a38ab0ed1322434c58675e2ac /app/javascript/flavours/glitch | |
parent | 1ed9500b524fd11910aa6beb1141c164bddcb968 (diff) |
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.
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_content.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index a15bf7c52..3bb3c7a12 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -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') }; |