Fix content-type being reset when editing toots (#1993)

Fixes #1990
This commit is contained in:
Claire
2022-12-04 17:58:10 +01:00
committed by GitHub
parent e7ff8111b1
commit f4879c4481
3 changed files with 4 additions and 2 deletions

View File

@ -599,6 +599,7 @@ export default function compose(state = initialState, action) {
return state.withMutations(map => {
map.set('id', action.status.get('id'));
map.set('text', action.text);
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'));