From 25904cc3274a6461dddd736f50844cab7a37a29c Mon Sep 17 00:00:00 2001 From: kozakura913 <98575220+kozakura913@users.noreply.github.com> Date: Sat, 22 Jun 2024 02:38:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AD=E3=83=A3=E3=83=83=E3=82=B7=E3=83=A5?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=82=A2=E3=81=A7fetchInstance=E3=82=92?= =?UTF-8?q?=E5=BC=B7=E5=88=B6=20(#105)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_yojo.md | 1 + packages/frontend/src/scripts/clear-cache.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG_yojo.md b/CHANGELOG_yojo.md index eda238bdc8..b28260f102 100644 --- a/CHANGELOG_yojo.md +++ b/CHANGELOG_yojo.md @@ -28,6 +28,7 @@ - enhance: ノートとユーザーの検索時に照会を行うかが選択できるようになりました - @foo​@example.com 形式でユーザ検索した場合に照会ができるようになりました - add: 通知音を追加 [@mujin-nohuman (無人)](https://github.com/mujin-nohuman) +- fix: "キャッシュをクリア"してもインスタンス情報が更新されない不具合を修正 [#101](https://github.com/yojo-art/cherrypick/issues/101) ### Server - remoteProxyエンドポイント設定を追加 diff --git a/packages/frontend/src/scripts/clear-cache.ts b/packages/frontend/src/scripts/clear-cache.ts index f2db87c4fb..f038e00abf 100644 --- a/packages/frontend/src/scripts/clear-cache.ts +++ b/packages/frontend/src/scripts/clear-cache.ts @@ -2,6 +2,7 @@ import { unisonReload } from '@/scripts/unison-reload.js'; import * as os from '@/os.js'; import { miLocalStorage } from '@/local-storage.js'; import { fetchCustomEmojis } from '@/custom-emojis.js'; +import { fetchInstance } from '@/instance.js'; export async function clearCache() { os.waiting(); @@ -11,5 +12,6 @@ export async function clearCache() { miLocalStorage.removeItem('emojis'); miLocalStorage.removeItem('lastEmojisFetchedAt'); await fetchCustomEmojis(true); + await fetchInstance(true); unisonReload(); }