mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-11 08:01:03 -07:00
parent
14e21021b6
commit
1d4473a171
2 changed files with 6 additions and 6 deletions
|
@ -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} `;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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} `;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue