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 @@
- + diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index d20ce77f..771afac3 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -180,7 +180,7 @@ export const parseStatus = (data) => { output.external_url = data.url // FIXME missing!! - output.is_local = false + output.is_local = null } else { output.favorited = data.favorited output.fave_num = data.fave_num