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

This commit is contained in:
Claire committed 2021-09-28 12:37:54 +02:00
commit b2dd2e95ad
10 files changed
+47 -31

No files matched your search

+1 -1
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();
}