1
0
forked from mirror/misskey
This commit is contained in:
syuilo 2018-05-27 03:01:08 +09:00
parent 728dd446b3
commit 20bb851c4e
2 changed files with 16 additions and 6 deletions

View File

@ -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} `;
}
});
}

View File

@ -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} `;
}
});
}