[Glitch] Use raw content if available on Delete & Redraft
Port front-end changes from 6d44f2441b
to glitch-soc
This commit is contained in:
parent
2b97d9d780
commit
93085c273c
2 changed files with 5 additions and 4 deletions
|
@ -426,7 +426,7 @@ export default function compose(state = initialState, action) {
|
|||
return state.mergeIn(['doodle'], action.options);
|
||||
case REDRAFT:
|
||||
return state.withMutations(map => {
|
||||
map.set('text', unescapeHTML(expandMentions(action.status)));
|
||||
map.set('text', action.raw_text || unescapeHTML(expandMentions(action.status)));
|
||||
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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue