};
};
-export function redraft(status, raw_text) {
+export function redraft(status, raw_text, content_type) {
return {
type: REDRAFT,
status,
raw_text,
+ content_type,
};
};
dispatch(deleteFromTimelines(id));
if (withRedraft) {
- dispatch(redraft(status, response.data.text));
+ dispatch(redraft(status, response.data.text, response.data.content_type));
if (!getState().getIn(['compose', 'mounted'])) {
router.push('/statuses/new');
case REDRAFT:
return state.withMutations(map => {
map.set('text', action.raw_text || unescapeHTML(expandMentions(action.status)));
+ map.set('content_type', action.content_type || 'text/plain');
map.set('in_reply_to', action.status.get('in_reply_to_id'));
map.set('privacy', action.status.get('visibility'));
map.set('media_attachments', action.status.get('media_attachments'));