From e39e7d5395eaacebc27d5813c43312a39108f624 Mon Sep 17 00:00:00 2001 From: eris Date: Tue, 30 Aug 2022 08:51:07 +0000 Subject: [PATCH] Dont copy local URL if external post --- src/components/extra_buttons/extra_buttons.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js index d56ea11c..f801444a 100644 --- a/src/components/extra_buttons/extra_buttons.js +++ b/src/components/extra_buttons/extra_buttons.js @@ -113,7 +113,11 @@ const ExtraButtons = { return !!this.currentUser }, statusLink () { - return `${this.$store.state.instance.server}${this.$router.resolve({ name: 'conversation', params: { id: this.status.id } }).href}` + if (this.status.is_local) { + return `${this.$store.state.instance.server}${this.$router.resolve({ name: 'conversation', params: { id: this.status.id } }).href}` + } else { + return this.status.external_url + } }, shouldConfirmDelete () { return this.$store.getters.mergedConfig.modalOnDelete