Fix not hiding quoted unlisted status in non public timeline

This commit is contained in:
noellabo 2021-01-04 13:39:11 +09:00
parent d93ab2a4d0
commit 0a51a32c35

View file

@ -618,7 +618,7 @@ class Status extends ImmutablePureComponent {
</div>
</div>
);
} else if (quote_status.get('visibility') === 'unlisted' && contextType !== 'home') {
} else if (quote_status.get('visibility') === 'unlisted' && !!contextType && ['public', 'community', 'hashtag'].includes(contextType.split(':', 2)[0])) {
quote = (
<div className={classNames('quote-status', `status-${quote_status.get('visibility')}`, { muted: this.props.muted })} data-id={quote_status.get('id')}>
<div className={classNames('status__content unlisted-quote', { 'status__content--with-action': this.context.router })}>