From dfa341e1c07edbf8317f731ab87099eb702325bf Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 23 Apr 2021 12:05:15 +0900 Subject: [PATCH] Make admin/update-remote-user public --- src/client/pages/user-info.vue | 2 +- .../api/endpoints/{admin => federation}/update-remote-user.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename src/server/api/endpoints/{admin => federation}/update-remote-user.ts (94%) diff --git a/src/client/pages/user-info.vue b/src/client/pages/user-info.vue index 090e8cdda..51bd5016b 100644 --- a/src/client/pages/user-info.vue +++ b/src/client/pages/user-info.vue @@ -162,7 +162,7 @@ export default defineComponent({ }, async updateRemoteUser() { - await os.apiWithDialog('admin/update-remote-user', { userId: this.user.id }); + await os.apiWithDialog('federation/update-remote-user', { userId: this.user.id }); this.refreshUser(); }, diff --git a/src/server/api/endpoints/admin/update-remote-user.ts b/src/server/api/endpoints/federation/update-remote-user.ts similarity index 94% rename from src/server/api/endpoints/admin/update-remote-user.ts rename to src/server/api/endpoints/federation/update-remote-user.ts index 9577ac0a5..1b7a9c4d5 100644 --- a/src/server/api/endpoints/admin/update-remote-user.ts +++ b/src/server/api/endpoints/federation/update-remote-user.ts @@ -10,10 +10,9 @@ export const meta = { 'en-US': 'Update specified remote user information.' }, - tags: ['admin'], + tags: ['federation'], requireCredential: true as const, - requireModerator: true, params: { userId: {