diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index 871fab2dc..549de95fc 100644 --- a/app/javascript/mastodon/components/status_content.js +++ b/app/javascript/mastodon/components/status_content.js @@ -234,46 +234,23 @@ export default class StatusContent extends React.PureComponent { ); } else if (this.props.onClick) { - const output = [ -
, - ]; - - if (this.state.collapsed) { - output.push(readMoreButton); - } + return ( +
+
- if (status.get('poll')) { - output.push(); - } + {!!this.state.collapsed && readMoreButton} - return output; + {!!status.get('poll') && } +
+ ); } else { - const output = [ -
, - ]; - - if (status.get('poll')) { - output.push(); - } + return ( +
+
- return output; + {!!status.get('poll') && } +
+ ); } }