summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-01-06 04:00:30 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-01-06 04:00:30 +0900
commitf9065943c56f4f56ad75204d756bb22e6e6b0cac (patch)
tree2ff4d1fe4d8bf59fac78fa96a98369ecabbd2cb9 /src
parentLocked mark (#3836) (diff)
downloadmisskey-f9065943c56f4f56ad75204d756bb22e6e6b0cac.tar.gz
misskey-f9065943c56f4f56ad75204d756bb22e6e6b0cac.tar.bz2
misskey-f9065943c56f4f56ad75204d756bb22e6e6b0cac.zip
Fix #3827 (#3837)
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/components/post-form.vue6
-rw-r--r--src/client/app/mobile/views/components/post-form.vue6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue
index 2971768104..27e487946b 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 f4bbc4fc0f..47af21c2a5 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} `;
}