From a2dcf2fc4125b3971b70eddbe1f451377d2c4743 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 31 Jan 2022 20:38:26 +0900 Subject: [PATCH] =?UTF-8?q?feat(client):=20=E9=80=A3=E5=90=88=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=82=B9=E3=82=BF=E3=83=B3=E3=82=B9=E3=83=9A=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=81=8B=E3=82=89=E3=82=A4=E3=83=B3=E3=82=B9=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E3=82=B9=E6=83=85=E5=A0=B1=E5=86=8D=E5=8F=96=E5=BE=97?= =?UTF-8?q?=E3=82=92=E8=A1=8C=E3=81=88=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolve #8231 --- CHANGELOG.md | 1 + packages/client/src/pages/instance-info.vue | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 481295b6a5..9fa51ed0b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ ## 12.x.x (unreleased) ### Improvements +- 連合インスタンスページからインスタンス情報再取得を行えるように ### Bugfixes - 投稿のNSFW画像を表示したあとにリアクションが更新されると画像が非表示になる問題を修正 diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index fa36db0659..f19cb9d1a2 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -29,6 +29,7 @@ {{ $ts.stopActivityDelivery }} {{ $ts.blockThisInstance }} + Refresh metadata @@ -111,6 +112,7 @@ import MkChart from '@/components/chart.vue'; import MkObjectView from '@/components/object-view.vue'; import FormLink from '@/components/form/link.vue'; import MkLink from '@/components/link.vue'; +import MkButton from '@/components/ui/button.vue'; import FormSection from '@/components/form/section.vue'; import MkKeyValue from '@/components/key-value.vue'; import MkSelect from '@/components/form/select.vue'; @@ -155,6 +157,15 @@ async function toggleSuspend(v) { }); } +function refreshMetadata() { + os.api('admin/federation/refresh-remote-instance-metadata', { + host: instance.host, + }); + os.alert({ + text: 'Refresh requested', + }); +} + fetch(); defineExpose({