From bd4e8271dffc296a8f838924fe410227ff3e079c Mon Sep 17 00:00:00 2001
From: eris <femmediscord@gmail.com>
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 16841539..4ac463e6 100644
--- a/src/components/extra_buttons/extra_buttons.js
+++ b/src/components/extra_buttons/extra_buttons.js
@@ -121,7 +121,11 @@ const ExtraButtons = {
       return this.$store.state.instance.translationEnabled === true
     },
     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