From 160e32a590a73c8a5d2ca75f24fe6f404adf518c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 19 Feb 2022 16:31:46 -0700 Subject: [PATCH] Update ComposeModal, fix post redirect on old UI --- resources/assets/js/components/ComposeModal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index 3e81e61c7..20f75e20e 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -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() {