fix: 同じユーザーが複数回宛先に追加できる問題

This commit is contained in:
anatawa12 2024-04-15 11:02:44 +09:00
parent 49294ef069
commit 81e8fabf58
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ function addMissingMention() {
for (const x of extractMentions(ast)) {
if (!visibleUsers.value.some(u => (u.username === x.username) && (u.host === x.host))) {
misskeyApi('users/show', { username: x.username, host: x.host }).then(user => {
visibleUsers.value.push(user);
pushVisibleUser(user);
});
}
}