From f8113f705ac0c8bedd7ccd90adee899130446988 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 31 Jul 2019 11:04:11 -0400 Subject: [PATCH] Refactor "All Fediverse" setting --- .../gabsocial/features/community_timeline/index.js | 5 ----- app/javascript/gabsocial/reducers/settings.js | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/javascript/gabsocial/features/community_timeline/index.js b/app/javascript/gabsocial/features/community_timeline/index.js index 6b59339c..58130882 100644 --- a/app/javascript/gabsocial/features/community_timeline/index.js +++ b/app/javascript/gabsocial/features/community_timeline/index.js @@ -41,11 +41,6 @@ class CommunityTimeline extends React.PureComponent { router: PropTypes.object, }; - static defaultProps = { - onlyMedia: false, - allFediverse: false, - }; - static propTypes = { dispatch: PropTypes.func.isRequired, intl: PropTypes.object.isRequired, diff --git a/app/javascript/gabsocial/reducers/settings.js b/app/javascript/gabsocial/reducers/settings.js index 99f0c718..49ef639f 100644 --- a/app/javascript/gabsocial/reducers/settings.js +++ b/app/javascript/gabsocial/reducers/settings.js @@ -57,6 +57,10 @@ const initialState = ImmutableMap({ }), community: ImmutableMap({ + other: ImmutableMap({ + allFediverse: false, + onlyMedia: false, + }), regex: ImmutableMap({ body: '', }),