From 956321b8633d2e291bc8d6ed89fcf9f0072d3af6 Mon Sep 17 00:00:00 2001 From: fef Date: Wed, 30 Nov 2022 14:59:37 +0000 Subject: [PATCH] make number of visible reactions a vanilla setting Reactions will be backported to the vanilla flavour, which requires all related settings to be accessible from the vanilla settings page rather than the glitch specific settings modal. --- app/javascript/flavours/glitch/components/status.jsx | 4 ++-- .../glitch/features/local_settings/page/index.jsx | 11 ----------- app/javascript/flavours/glitch/initial_state.js | 5 ++--- app/javascript/flavours/glitch/locales/de.js | 3 --- app/javascript/flavours/glitch/locales/en.js | 2 -- app/javascript/flavours/glitch/locales/fr.js | 3 --- .../flavours/glitch/reducers/local_settings.js | 1 - app/serializers/initial_state_serializer.rb | 1 + .../settings/preferences/appearance/show.html.haml | 3 +++ config/locales/simple_form.de.yml | 1 + config/locales/simple_form.en.yml | 1 + config/locales/simple_form.fr.yml | 1 + 12 files changed, 11 insertions(+), 25 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index 323e9f5a8a..575aad991e 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -12,7 +12,7 @@ import { HotKeys } from 'react-hotkeys'; import PictureInPicturePlaceholder from 'flavours/glitch/components/picture_in_picture_placeholder'; import PollContainer from 'flavours/glitch/containers/poll_container'; import NotificationOverlayContainer from 'flavours/glitch/features/notifications/containers/overlay_container'; -import { displayMedia } from 'flavours/glitch/initial_state'; +import { displayMedia, visibleReactions } from 'flavours/glitch/initial_state'; import { autoUnfoldCW } from 'flavours/glitch/utils/content_warning'; import Card from '../features/status/components/card'; @@ -840,7 +840,7 @@ class Status extends ImmutablePureComponent { - - -