Dont copy local URL if external post

This commit is contained in:
eris 2022-08-30 08:51:07 +00:00
parent fa80d2627d
commit e39e7d5395

View file

@ -113,7 +113,11 @@ const ExtraButtons = {
return !!this.currentUser return !!this.currentUser
}, },
statusLink () { 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 () { shouldConfirmDelete () {
return this.$store.getters.mergedConfig.modalOnDelete return this.$store.getters.mergedConfig.modalOnDelete