diff --git a/.github/workflows/docker-develop.yml b/.github/workflows/docker-develop.yml
index 295ab028b..d1df7b50b 100644
--- a/.github/workflows/docker-develop.yml
+++ b/.github/workflows/docker-develop.yml
@@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3.6.0
- name: Set up Docker Buildx
id: buildx
- uses: docker/setup-buildx-action@v2.9.1
+ uses: docker/setup-buildx-action@v2.10.0
with:
platforms: linux/amd64,linux/arm64
- name: Docker meta
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index dd039c37c..f0bf06caf 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v3.6.0
- name: Set up Docker Buildx
id: buildx
- uses: docker/setup-buildx-action@v2.9.1
+ uses: docker/setup-buildx-action@v2.10.0
with:
platforms: linux/amd64,linux/arm64
- name: Docker meta
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04eab4707..1a379d53e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,6 +28,8 @@
- メニューのスイッチの動作を改善
- 絵文字ピッカーの検索の表示件数を100件に増加
- 投稿フォームのプレビューの表示状態を記憶するように
+- ノート詳細ページ読み込み時のパフォーマンスを改善
+- AiScriptからMisskeyサーバーAPIを呼び出す際の制限を撤廃
- Enhance: ユーザーメニューでスイッチでユーザーリストに追加・削除できるように
- Enhance: 自分が押したリアクションのデザインを改善
- Enhance: ノート検索にローカルのみ検索可能なオプションの追加
diff --git a/packages/frontend/src/pages/note.vue b/packages/frontend/src/pages/note.vue
index fb19783f3..48f62c83a 100644
--- a/packages/frontend/src/pages/note.vue
+++ b/packages/frontend/src/pages/note.vue
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
@@ -28,7 +28,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
@@ -63,8 +63,6 @@ const props = defineProps<{
let note = $ref();
let clips = $ref();
-let hasPrev = $ref(false);
-let hasNext = $ref(false);
let showPrev = $ref(false);
let showNext = $ref(false);
let error = $ref();
@@ -89,8 +87,6 @@ const nextPagination = {
};
function fetchNote() {
- hasPrev = false;
- hasNext = false;
showPrev = false;
showNext = false;
note = null;
@@ -102,20 +98,8 @@ function fetchNote() {
os.api('notes/clips', {
noteId: note.id,
}),
- os.api('users/notes', {
- userId: note.userId,
- untilId: note.id,
- limit: 1,
- }),
- os.api('users/notes', {
- userId: note.userId,
- sinceId: note.id,
- limit: 1,
- }),
- ]).then(([_clips, prev, next]) => {
+ ]).then(([_clips]) => {
clips = _clips;
- hasPrev = prev.length !== 0;
- hasNext = next.length !== 0;
});
}).catch(err => {
error = err;
diff --git a/packages/frontend/src/scripts/aiscript/api.ts b/packages/frontend/src/scripts/aiscript/api.ts
index 8dd3b665a..c3acb6d14 100644
--- a/packages/frontend/src/scripts/aiscript/api.ts
+++ b/packages/frontend/src/scripts/aiscript/api.ts
@@ -11,7 +11,6 @@ import { customEmojis } from '@/custom-emojis';
import { lang } from '@/config';
export function createAiScriptEnv(opts) {
- let apiRequests = 0;
return {
USER_ID: $i ? values.STR($i.id) : values.NULL,
USER_NAME: $i ? values.STR($i.name) : values.NULL,
@@ -40,8 +39,6 @@ export function createAiScriptEnv(opts) {
// バグがあればundefinedもあり得るため念のため
if (typeof token.value !== 'string') throw new Error('invalid token');
}
- apiRequests++;
- if (apiRequests > 16) return values.NULL;
const res = await os.api(ep.value, utils.valToJs(param), token ? token.value : (opts.token ?? null));
return utils.jsToVal(res);
}),