diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-23 00:38:16 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-23 00:38:16 +0100 |
commit | de9b6e3a6a8b62ffc2219d980f6ac4fea3f005d7 (patch) | |
tree | 7f79e3741a78e425d1aca14ba5071d2aaa24d246 /app/assets/javascripts/components/reducers/compose.jsx | |
parent | b302b9202b17abe9834460acf589b512579766d6 (diff) |
Compose form in the UI now has public/private toggle instead of public/unlisted
Diffstat (limited to 'app/assets/javascripts/components/reducers/compose.jsx')
-rw-r--r-- | app/assets/javascripts/components/reducers/compose.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |