Merge pull request 'Make "Copy link" copy external URL if external post' (#144) from eris/pleroma-fe:copy-url-fix into develop
ci/woodpecker/push/woodpecker Pipeline failed Details

Reviewed-on: AkkomaGang/pleroma-fe#144
This commit is contained in:
floatingghost 2022-08-31 15:43:37 +00:00
commit 064b8ba7f7
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