1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 14:46:40 +09:00
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) {
this.text += `${mention} `;
}
//
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) {
this.text += `${mention} `;
}
//
if (this.os.i.username == x.username && x.host == null) return;
//
if (this.text.indexOf(`${mention} `) != -1) return;
this.text += `${mention} `;
});
}