]> cat aescling's git repositories - mastodon.git/commitdiff
Fix incorrect reference to raw_content (it is raw_text instead) (#10753)
authorThibG <thib@sitedethib.com>
Sat, 11 May 2019 21:56:07 +0000 (23:56 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 11 May 2019 21:56:07 +0000 (23:56 +0200)
app/javascript/mastodon/reducers/compose.js

index 85cbdfb17e4ab9798ffc35436d610cc4e1bf081f..7082725910641b97b1ec68b33dcff900ffe48ba0 100644 (file)
@@ -331,7 +331,7 @@ export default function compose(state = initialState, action) {
       }));
   case REDRAFT:
     return state.withMutations(map => {
-      map.set('text', action.raw_content || 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'));