Browse Source

Fix redrafting a currently-editing post not leaving edit mode (#20023)

closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
782b6835f7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/javascript/mastodon/reducers/compose.js

+ 1
- 0
app/javascript/mastodon/reducers/compose.js View File

@ -452,6 +452,7 @@ export default function compose(state = initialState, action) {
map.set('idempotencyKey', uuid());
map.set('sensitive', action.status.get('sensitive'));
map.set('language', action.status.get('language'));
map.set('id', null);
if (action.status.get('spoiler_text').length > 0) {
map.set('spoiler', true);

Loading…
Cancel
Save