forked from mirror/misskey
Fix bug
This commit is contained in:
parent
728dd446b3
commit
20bb851c4e
@ -116,9 +116,14 @@ export default Vue.extend({
|
|||||||
|
|
||||||
ast.filter(t => t.type == 'mention').forEach(x => {
|
ast.filter(t => t.type == 'mention').forEach(x => {
|
||||||
const mention = x.host ? `@${x.username}@${x.host}` : `@${x.username}`;
|
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} `;
|
this.text += `${mention} `;
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,9 +84,14 @@ export default Vue.extend({
|
|||||||
|
|
||||||
ast.filter(t => t.type == 'mention').forEach(x => {
|
ast.filter(t => t.type == 'mention').forEach(x => {
|
||||||
const mention = x.host ? `@${x.username}@${x.host}` : `@${x.username}`;
|
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} `;
|
this.text += `${mention} `;
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user