Merge remote-tracking branch 'misskey-dev/develop' into io
This commit is contained in:
@@ -101,7 +101,13 @@ function search() {
|
||||
limit: 10,
|
||||
detail: false,
|
||||
}).then(_users => {
|
||||
users.value = _users;
|
||||
users.value = _users.filter((u) => {
|
||||
if (!props.includeSelf) {
|
||||
return u.id !== $i?.id;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -131,13 +137,22 @@ onMounted(() => {
|
||||
misskeyApi('users/show', {
|
||||
userIds: defaultStore.state.recentlyUsedUsers,
|
||||
}).then(foundUsers => {
|
||||
const _users = foundUsers.filter((u) => {
|
||||
if (props.localOnly) {
|
||||
return u.host == null;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
const _users = foundUsers
|
||||
.filter((u) => {
|
||||
if (props.localOnly) {
|
||||
return u.host == null;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
})
|
||||
.filter((u) => {
|
||||
if (!props.includeSelf) {
|
||||
return u.id !== $i?.id;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
if (props.includeSelf && $i && !_users.find(x => $i ? x.id === $i.id : true)) {
|
||||
recentUsers.value = [$i, ..._users];
|
||||
} else {
|
||||
|
@@ -196,7 +196,7 @@ async function matchHeatbeat() {
|
||||
async function matchUser() {
|
||||
pleaseLogin();
|
||||
|
||||
const user = await os.selectUser({ localOnly: true });
|
||||
const user = await os.selectUser({ includeSelf: false, localOnly: true });
|
||||
if (user == null) return;
|
||||
|
||||
matchingUser.value = user;
|
||||
|
Reference in New Issue
Block a user