From d5e565e7661ea147fddd7a85828a5045e46432c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 26 Dec 2021 22:44:43 +0100 Subject: [PATCH] Add to /settings/profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/edit_profile/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/soapbox/features/edit_profile/index.js b/app/soapbox/features/edit_profile/index.js index a0154b3ba..64f99a000 100644 --- a/app/soapbox/features/edit_profile/index.js +++ b/app/soapbox/features/edit_profile/index.js @@ -103,6 +103,7 @@ class EditProfile extends ImmutablePureComponent { const strangerNotifications = account.getIn(['pleroma', 'notification_settings', 'block_from_strangers']); const acceptsEmailList = account.getIn(['pleroma', 'accepts_email_list']); + const discoverable = account.getIn(['source', 'pleroma', 'discoverable']); const initialState = account.withMutations(map => { map.merge(map.get('source')); @@ -111,6 +112,7 @@ class EditProfile extends ImmutablePureComponent { map.set('stranger_notifications', strangerNotifications); map.set('accepts_email_list', acceptsEmailList); map.set('hide_network', hidesNetwork(account)); + map.set('discoverable', discoverable); unescapeParams(map, ['display_name', 'bio']); }); @@ -309,6 +311,13 @@ class EditProfile extends ImmutablePureComponent { checked={this.state.stranger_notifications} onChange={this.handleCheckboxChange} /> + } + hint={} + name='discoverable' + checked={this.state.discoverable} + onChange={this.handleCheckboxChange} + /> {supportsEmailList && } hint={}