mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Merge remote-tracking branch 'misskey-dev/develop' into io
This commit is contained in:
commit
470815ba73
27
.github/workflows/check-misskey-js-version.yml
vendored
Normal file
27
.github/workflows/check-misskey-js-version.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: Check Misskey JS version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ io ]
|
||||
paths:
|
||||
- packages/misskey-js/package.json
|
||||
- package.json
|
||||
pull_request:
|
||||
paths:
|
||||
- packages/misskey-js/package.json
|
||||
- package.json
|
||||
|
||||
jobs:
|
||||
check-version:
|
||||
# ルートの package.json と packages/misskey-js/package.json のバージョンが一致しているかを確認する
|
||||
name: Check version
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.1
|
||||
- name: Check version
|
||||
run: |
|
||||
if [ "$(jq -r '.version' package.json)" != "$(jq -r '.version' packages/misskey-js/package.json)" ]; then
|
||||
echo "Version mismatch!"
|
||||
exit 1
|
||||
fi
|
14
.github/workflows/test-misskey-js.yml
vendored
14
.github/workflows/test-misskey-js.yml
vendored
@ -53,17 +53,3 @@ jobs:
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: ./packages/misskey-js/coverage/coverage-final.json
|
||||
|
||||
check-version:
|
||||
# ルートの package.json と packages/misskey-js/package.json のバージョンが一致しているかを確認する
|
||||
name: Check version
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.1
|
||||
- name: Check version
|
||||
run: |
|
||||
if [ "$(jq -r '.version' package.json)" != "$(jq -r '.version' packages/misskey-js/package.json)" ]; then
|
||||
echo "Version mismatch!"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user