Fix display of toots without text content (#15665)
* Fix display of toots without text content - fixes CWs from other implementations not showing up if toot has no text contents - fixes the “Read more” thread indicator not showing up on threaded toots with no text contents * Move content-less toot's CW to conents
This commit is contained in:
parent
7cb34b32f8
commit
aa1b43f467
2 changed files with 7 additions and 4 deletions
|
@ -170,10 +170,6 @@ export default class StatusContent extends React.PureComponent {
|
|||
render () {
|
||||
const { status } = this.props;
|
||||
|
||||
if (status.get('content').length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const hidden = this.props.onExpandedToggle ? !this.props.expanded : this.state.hidden;
|
||||
const renderReadMore = this.props.onClick && status.get('collapsed');
|
||||
const renderViewThread = this.props.showThread && status.get('in_reply_to_id') && status.get('in_reply_to_account_id') === status.getIn(['account', 'id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue