From e53622442c17a6249a3dfb073b7cf4648c5ae59c Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 10 Mar 2020 17:46:47 +0100 Subject: Fix privacy icon being displayed twice in glitch-soc Web UI Fixes #1298 --- .../flavours/glitch/features/status/components/detailed_status.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/javascript/flavours/glitch/features/status/components/detailed_status.js') 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 c4ac8f0a6..180b11a54 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} ·
-- cgit