about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-05-12 20:35:58 +0200
committerThibG <thib@sitedethib.com>2019-05-17 23:51:14 +0200
commit93d98f62a8b35a01e11a41750dc39c6a287410d9 (patch)
treea05b39195a999f97a7b9213483c290a25c6965a3 /app/javascript/flavours/glitch/reducers
parentf34a402a94bd5a0c9860165ff50c93b300fd1756 (diff)
Support proper content-type in Delete & Redraft
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js
index 516da859a..82facb1e2 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -433,6 +433,7 @@ export default function compose(state = initialState, action) {
   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'));