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={}