mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ComposeModal, fix post redirect on old UI
This commit is contained in:
parent
95a2cb970f
commit
160e32a590
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue