mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-17 12:24:31 +00:00
Fix detailed view of direct messages displaying a 0 boost count (#13244)
The boost count is already removed from private toots, do the same with direct messages.
This commit is contained in:
parent
51a1fbaafc
commit
aeebbe90dc
|
@ -166,7 +166,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
reblogIcon = 'lock';
|
reblogIcon = 'lock';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status.get('visibility') === 'private') {
|
if (['private', 'direct'].includes(status.get('visibility'))) {
|
||||||
reblogLink = <Icon id={reblogIcon} />;
|
reblogLink = <Icon id={reblogIcon} />;
|
||||||
} else if (this.context.router) {
|
} else if (this.context.router) {
|
||||||
reblogLink = (
|
reblogLink = (
|
||||||
|
|
Loading…
Reference in a new issue