Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2021-09-28 12:37:54 +02:00
10 changed files with 47 additions and 31 deletions

View File

@ -158,7 +158,7 @@ export function submitCompose(routerHistory) {
'Idempotency-Key': getState().getIn(['compose', 'idempotencyKey']),
},
}).then(function (response) {
if (routerHistory && routerHistory.location.pathname === '/publish' && window.history.state) {
if (routerHistory && (routerHistory.location.pathname === '/publish' || routerHistory.location.pathname === '/statuses/new') && window.history.state) {
routerHistory.goBack();
}