]> cat aescling's git repositories - mastodon.git/commitdiff
Fix detailed view of direct messages displaying a 0 boost count (#13244)
authorThibG <thib@sitedethib.com>
Tue, 10 Mar 2020 17:39:47 +0000 (18:39 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 17:39:47 +0000 (18:39 +0100)
The boost count is already removed from private toots,
do the same with direct messages.

app/javascript/mastodon/features/status/components/detailed_status.js

index 2fec247c16c973c8cbd8831a90cac038b0cb274e..7a82fa13ac357cae07302a96659162ae082c770e 100644 (file)
@@ -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 = (