From ce27b36fd04d43dd0852e5d066d50d3236381348 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 13 Jun 2018 05:21:55 +0900 Subject: [PATCH] Fix bug --- src/client/app/desktop/views/components/post-form.vue | 2 ++ src/client/app/mobile/views/components/post-form.vue | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 7b2adfe707..a0670a084e 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -50,6 +50,7 @@ import * as XDraggable from 'vuedraggable'; import getKao from '../../../common/scripts/get-kao'; import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue'; import parse from '../../../../../text/parse'; +import { host } from '../../../config'; export default Vue.extend({ components: { @@ -129,6 +130,7 @@ export default Vue.extend({ // 自分は除外 if (this.$store.state.i.username == x.username && x.host == null) return; + if (this.$store.state.i.username == x.username && x.host == host) return; // 重複は除外 if (this.text.indexOf(`${mention} `) != -1) return; diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index 2c7feb3f8e..88853fa236 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -46,6 +46,7 @@ import * as XDraggable from 'vuedraggable'; import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue'; import getKao from '../../../common/scripts/get-kao'; import parse from '../../../../../text/parse'; +import { host } from '../../../config'; export default Vue.extend({ components: { @@ -123,6 +124,7 @@ export default Vue.extend({ // 自分は除外 if (this.$store.state.i.username == x.username && x.host == null) return; + if (this.$store.state.i.username == x.username && x.host == host) return; // 重複は除外 if (this.text.indexOf(`${mention} `) != -1) return;