forked from FoundKeyGang/FoundKey
Fix bug
This commit is contained in:
parent
728dd446b3
commit
20bb851c4e
2 changed files with 16 additions and 6 deletions
|
@ -116,9 +116,14 @@ export default Vue.extend({
|
|||
|
||||
ast.filter(t => t.type == 'mention').forEach(x => {
|
||||
const mention = x.host ? `@${x.username}@${x.host}` : `@${x.username}`;
|
||||
if (this.text.indexOf(`${mention} `) == -1) {
|
||||
|
||||
// 自分は除外
|
||||
if (this.os.i.username == x.username && x.host == null) return;
|
||||
|
||||
// 重複は除外
|
||||
if (this.text.indexOf(`${mention} `) != -1) return;
|
||||
|
||||
this.text += `${mention} `;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -84,9 +84,14 @@ export default Vue.extend({
|
|||
|
||||
ast.filter(t => t.type == 'mention').forEach(x => {
|
||||
const mention = x.host ? `@${x.username}@${x.host}` : `@${x.username}`;
|
||||
if (this.text.indexOf(`${mention} `) == -1) {
|
||||
|
||||
// 自分は除外
|
||||
if (this.os.i.username == x.username && x.host == null) return;
|
||||
|
||||
// 重複は除外
|
||||
if (this.text.indexOf(`${mention} `) != -1) return;
|
||||
|
||||
this.text += `${mention} `;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue