[Glitch] Fix redrafting a currently-editing post not leaving edit mode

Port 782b6835f7 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
remotes/1700377468529955465/logo-fix
Claire 2022-11-08 04:06:54 +01:00
parent fe1b694128
commit 9b6d6a919f
1 changed files with 1 additions and 0 deletions

View File

@ -573,6 +573,7 @@ export default function compose(state = initialState, action) {
'advanced_options',
map => map.merge(new ImmutableMap({ do_not_federate }))
);
map.set('id', null);
if (action.status.get('spoiler_text').length > 0) {
map.set('spoiler', true);