|
|
|
@ -67,6 +67,7 @@ class Status extends ImmutablePureComponent { |
|
|
|
|
unread: PropTypes.bool, |
|
|
|
|
onMoveUp: PropTypes.func, |
|
|
|
|
onMoveDown: PropTypes.func, |
|
|
|
|
showThread: PropTypes.bool, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// Avoid checking props that are functions (and whose equality will always
|
|
|
|
@ -168,7 +169,7 @@ class Status extends ImmutablePureComponent { |
|
|
|
|
let media = null; |
|
|
|
|
let statusAvatar, prepend, rebloggedByText; |
|
|
|
|
|
|
|
|
|
const { intl, hidden, featured, otherAccounts, unread } = this.props; |
|
|
|
|
const { intl, hidden, featured, otherAccounts, unread, showThread } = this.props; |
|
|
|
|
|
|
|
|
|
let { status, account, ...other } = this.props; |
|
|
|
|
|
|
|
|
@ -309,6 +310,12 @@ class Status extends ImmutablePureComponent { |
|
|
|
|
|
|
|
|
|
{media} |
|
|
|
|
|
|
|
|
|
{showThread && status.get('in_reply_to_id') && status.get('in_reply_to_account_id') === status.getIn(['account', 'id']) && ( |
|
|
|
|
<button className='status__content__read-more-button' onClick={this.handleClick}> |
|
|
|
|
<FormattedMessage id='status.show_thread' defaultMessage='Show thread' /> |
|
|
|
|
</button> |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
<StatusActionBar status={status} account={account} {...other} /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|