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
This commit is contained in:
Eugen Rochko
2017-02-17 01:30:24 +01:00
parent d0f087db2d
commit 8132cf8153
3 changed files with 18 additions and 0 deletions

View File

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