diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index 297176810..27e487946 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -198,11 +198,11 @@ export default Vue.extend({ const mention = x.host ? `@${x.username}@${toASCII(x.host)}` : `@${x.username}`; // 自分は除外 - 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.$store.state.i.username == x.username && x.host == null) continue; + if (this.$store.state.i.username == x.username && x.host == host) continue; // 重複は除外 - if (this.text.indexOf(`${mention} `) != -1) return; + if (this.text.indexOf(`${mention} `) != -1) continue; this.text += `${mention} `; } diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index f4bbc4fc0..47af21c2a 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -187,11 +187,11 @@ export default Vue.extend({ const mention = x.host ? `@${x.username}@${toASCII(x.host)}` : `@${x.username}`; // 自分は除外 - 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.$store.state.i.username == x.username && x.host == null) continue; + if (this.$store.state.i.username == x.username && x.host == host) continue; // 重複は除外 - if (this.text.indexOf(`${mention} `) != -1) return; + if (this.text.indexOf(`${mention} `) != -1) continue; this.text += `${mention} `; }