diff --git a/packages/backend/src/server/api/endpoints/federation/instances.ts b/packages/backend/src/server/api/endpoints/federation/instances.ts index 76c785fd9..fc182eac5 100644 --- a/packages/backend/src/server/api/endpoints/federation/instances.ts +++ b/packages/backend/src/server/api/endpoints/federation/instances.ts @@ -15,7 +15,11 @@ import { sqlLikeEscape } from '@/misc/sql-like-escape.js'; export const meta = { tags: ['federation'], - requireCredential: false, + requireCredential: true, + requireModerator: true, + + kind: 'read:admin:server-info', + allowGet: true, cacheSec: 3600, diff --git a/packages/backend/src/server/api/endpoints/federation/show-instance.ts b/packages/backend/src/server/api/endpoints/federation/show-instance.ts index 2972861a4..f1e6cb8b4 100644 --- a/packages/backend/src/server/api/endpoints/federation/show-instance.ts +++ b/packages/backend/src/server/api/endpoints/federation/show-instance.ts @@ -13,7 +13,10 @@ import { DI } from '@/di-symbols.js'; export const meta = { tags: ['federation'], - requireCredential: false, + requireCredential: true, + requireModerator: true, + + kind: 'read:admin:server-info', res: { type: 'object', diff --git a/packages/frontend/src/components/MkInstanceStats.vue b/packages/frontend/src/components/MkInstanceStats.vue index d74c88504..63a9316e8 100644 --- a/packages/frontend/src/components/MkInstanceStats.vue +++ b/packages/frontend/src/components/MkInstanceStats.vue @@ -137,6 +137,7 @@ function createDoughnut(chartEl, tooltip, data) { bottom: 16, }, }, + /* onClick: (ev) => { if (ev.native == null) return; const hit = chartInstance.getElementsAtEventForMode(ev.native, 'nearest', { intersect: true }, false)[0]; @@ -144,6 +145,7 @@ function createDoughnut(chartEl, tooltip, data) { data[hit.index].onClick(); } }, + */ plugins: { legend: { display: false, diff --git a/packages/frontend/src/pages/about.vue b/packages/frontend/src/pages/about.vue index 79e8db145..396d02546 100644 --- a/packages/frontend/src/pages/about.vue +++ b/packages/frontend/src/pages/about.vue @@ -143,9 +143,11 @@ SPDX-License-Identifier: AGPL-3.0-only + @@ -205,11 +207,11 @@ const headerTabs = computed(() => [{ key: 'emojis', title: i18n.ts.customEmojis, icon: 'ti ti-icons', -}, { +}, /* { key: 'federation', title: i18n.ts.federation, icon: 'ti ti-whirl', -}, { +}, */ { key: 'charts', title: i18n.ts.charts, icon: 'ti ti-chart-line', diff --git a/packages/frontend/src/pages/welcome.entrance.a.vue b/packages/frontend/src/pages/welcome.entrance.a.vue index d6ba397f1..b73a55d60 100644 --- a/packages/frontend/src/pages/welcome.entrance.a.vue +++ b/packages/frontend/src/pages/welcome.entrance.a.vue @@ -23,15 +23,17 @@ SPDX-License-Identifier: AGPL-3.0-only
+ + {{ instance.host }} + -->