From 9af4ed237c2748d1ce65963b3a6b0a3a9dd86559 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 10 Mar 2020 17:46:47 +0100 Subject: [PATCH] Fix privacy icon being displayed twice in glitch-soc Web UI Fixes #1298 --- .../glitch/features/status/components/detailed_status.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index c4ac8f0a64..180b11a54f 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -198,8 +198,8 @@ export default class DetailedStatus extends ImmutablePureComponent { reblogIcon = 'lock'; } - if (status.get('visibility') === 'private') { - reblogLink = ; + if (!['unlisted', 'public'].includes(status.get('visibility'))) { + reblogLink = null; } else if (this.context.router) { reblogLink = ( @@ -265,7 +265,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
- {applicationLink} · {reblogLink} · {favouriteLink} · + {applicationLink} {!!reblogLink && ['·', reblogLink]} · {favouriteLink} ·