about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-17 01:30:24 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-17 01:30:24 +0100
commit8132cf8153e45aa75333c5bfd636141e1792bd50 (patch)
tree39c1732ff8b8302bfa17bcca1c6c518653a7fe97 /app/assets/javascripts
parentd0f087db2df65bd4b6c4c4558ea39f14f38733c7 (diff)
Add GET /api/v1/accounts/:id/statuses/media that returns only statuses with media attachments
Make replies default to privacy settings of the status being replied to
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/components/reducers/compose.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx
index ef8cde75b..77ec2705f 100644
--- a/app/assets/javascripts/components/reducers/compose.jsx
+++ b/app/assets/javascripts/components/reducers/compose.jsx
@@ -126,6 +126,8 @@ export default function compose(state = initialState, action) {
     return state.withMutations(map => {
       map.set('in_reply_to', action.status.get('id'));
       map.set('text', statusToTextMentions(state, action.status));
+      map.set('unlisted', action.status.get('visibility') === 'unlisted');
+      map.set('private', action.status.get('visibility') === 'private');
     });
   case COMPOSE_REPLY_CANCEL:
     return state.withMutations(map => {