This commit is contained in:
MeiMei 2019-01-06 04:00:30 +09:00 committed by syuilo
parent d0aff4409d
commit f9065943c5
2 changed files with 6 additions and 6 deletions

View File

@ -198,11 +198,11 @@ export default Vue.extend({
const mention = x.host ? `@${x.username}@${toASCII(x.host)}` : `@${x.username}`; 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 == null) continue;
if (this.$store.state.i.username == x.username && x.host == host) return; 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} `; this.text += `${mention} `;
} }

View File

@ -187,11 +187,11 @@ export default Vue.extend({
const mention = x.host ? `@${x.username}@${toASCII(x.host)}` : `@${x.username}`; 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 == null) continue;
if (this.$store.state.i.username == x.username && x.host == host) return; 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} `; this.text += `${mention} `;
} }