about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-03-28 20:57:25 +0200
committerThibaut Girka <thib@sitedethib.com>2018-03-28 21:13:45 +0200
commit53eab4470dffccae7c8069f88ddfdc7b58d8126f (patch)
treed0d164a68219bc1a38ab0ed1322434c58675e2ac
parent1ed9500b524fd11910aa6beb1141c164bddcb968 (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.
-rw-r--r--app/javascript/flavours/glitch/components/status_content.js4
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') };