Make "Copy link" copy external URL if external post #144

Merged
floatingghost merged 1 commits from eris/pleroma-fe:copy-url-fix into develop 2022-08-31 15:43:37 +00:00
1 changed files with 5 additions and 1 deletions

View File

@ -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