From b796afc8187292f9739c88ec63e420b4a82668a9 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 48b21c393c..3f1a10f5f2 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -17,7 +17,7 @@ import NotificationOverlayContainer from 'flavours/glitch/features/notifications import classNames from 'classnames'; import { autoUnfoldCW } from 'flavours/glitch/utils/content_warning'; import PollContainer from 'flavours/glitch/containers/poll_container'; -import { displayMedia } from 'flavours/glitch/initial_state'; +import { displayMedia, visibleReactions } from 'flavours/glitch/initial_state'; import PictureInPicturePlaceholder from 'flavours/glitch/components/picture_in_picture_placeholder'; // We use the component (and not the container) since we do not want @@ -823,7 +823,7 @@ class Status extends ImmutablePureComponent { - - -