Update ComposeModal, fix post redirect on old UI

This commit is contained in:
Daniel Supernault 2022-02-19 16:31:46 -07:00
parent 95a2cb970f
commit 160e32a590
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1262,7 +1262,7 @@ export default {
if(location.pathname === '/i/web/compose' && res.data && res.data.length) {
location.href = '/i/web/post/' + res.data.split('/').slice(-1)[0];
} else {
location.href = data;
location.href = res.data;
}
}).catch(err => {
if(err.response) {
@ -1330,6 +1330,7 @@ export default {
closeModal() {
$('#composeModal').modal('hide');
this.$emit('close');
},
goBack() {