From: ThibG Date: Tue, 10 Mar 2020 17:39:47 +0000 (+0100) Subject: Fix detailed view of direct messages displaying a 0 boost count (#13244) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=aeebbe90dc8224ae8bc9ac81fb68435105edb293;p=mastodon.git 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. --- 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 = ; } else if (this.context.router) { reblogLink = (