From de9b6e3a6a8b62ffc2219d980f6ac4fea3f005d7 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 23 Dec 2016 00:38:16 +0100 Subject: Compose form in the UI now has public/private toggle instead of public/unlisted --- app/assets/javascripts/components/reducers/compose.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/assets/javascripts/components/reducers/compose.jsx') diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx index 4bb76dff0..bdf374a00 100644 --- a/app/assets/javascripts/components/reducers/compose.jsx +++ b/app/assets/javascripts/components/reducers/compose.jsx @@ -26,7 +26,7 @@ import Immutable from 'immutable'; const initialState = Immutable.Map({ mounted: false, sensitive: false, - unlisted: false, + private: false, text: '', in_reply_to: null, is_submitting: false, @@ -92,7 +92,7 @@ export default function compose(state = initialState, action) { case COMPOSE_SENSITIVITY_CHANGE: return state.set('sensitive', action.checked); case COMPOSE_VISIBILITY_CHANGE: - return state.set('unlisted', action.checked); + return state.set('private', action.checked); case COMPOSE_CHANGE: return state.set('text', action.text); case COMPOSE_REPLY: @@ -136,7 +136,7 @@ export default function compose(state = initialState, action) { return state; } case ACCOUNT_SET_SELF: - return state.set('me', action.account.id); + return state.set('me', action.account.id).set('private', action.account.locked); default: return state; } -- cgit