diff --git a/src/components/status/status.js b/src/components/status/status.js index 9e18fe15..7f25f1be 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -49,6 +49,16 @@ const Status = { ? this.$store.state.instance.collapseMessageWithSubject : this.$store.state.config.collapseMessageWithSubject }, + isLocal () { + if (this.status.is_local !== null) { + return this.status.is_local + } else { + const server = this.$store.state.instance.server + const windowDomain = window.location.origin + return this.status.external_url.startsWith(server) || + this.status.external_url.startsWith(windowDomain) + } + }, muteWords () { return this.$store.state.config.muteWords }, diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 1f6d0325..91792c50 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -49,7 +49,7 @@
- +