mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-03 09:18:09 +09:00
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 => {
|
||||
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} `;
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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} `;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user