diff options
author | ThibG <thib@sitedethib.com> | 2020-03-10 18:39:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 18:39:47 +0100 |
commit | aeebbe90dc8224ae8bc9ac81fb68435105edb293 (patch) | |
tree | 68bd41c78f1ec13004329bdbd25d02f440ad7395 /app/javascript | |
parent | 51a1fbaafcc67153b69960477259a469f76a1fe3 (diff) |
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.
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/features/status/components/detailed_status.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/status/components/detailed_status.js b/app/javascript/mastodon/features/status/components/detailed_status.js index 2fec247c1..7a82fa13a 100644 --- a/app/javascript/mastodon/features/status/components/detailed_status.js +++ b/app/javascript/mastodon/features/status/components/detailed_status.js @@ -166,7 +166,7 @@ export default class DetailedStatus extends ImmutablePureComponent { reblogIcon = 'lock'; } - if (status.get('visibility') === 'private') { + if (['private', 'direct'].includes(status.get('visibility'))) { reblogLink = <Icon id={reblogIcon} />; } else if (this.context.router) { reblogLink = ( |