diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index 54c608ac9e..7c7ec24e05 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -638,7 +638,9 @@ export class ClientServerService { reply.header('X-Robots-Tag', 'noai'); } - const _user = await this.userEntityService.pack(user); + const _user = await this.userEntityService.pack(user, null, { + schema: host ? 'UserLite' : 'UserDetailedNotMe' // リモートユーザーの場合は詳細情報を返さない + }); return await reply.view('user', { user, profile, me, @@ -712,9 +714,14 @@ export class ClientServerService { // Page fastify.get<{ Params: { user: string; page: string; } }>('/@:user/pages/:page', async (request, reply) => { const { username, host } = Acct.parse(request.params.user); + + if (host) { + return await renderBase(reply); // リモートユーザーのページはSSRしない + } + const user = await this.usersRepository.findOneBy({ usernameLower: username.toLowerCase(), - host: host ?? IsNull(), + host: IsNull(), }); if (user == null) return; diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index 2794db2821..65a36c42e9 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -53,7 +53,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
@@ -96,7 +96,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.birthday }}
{{ user.birthday.replace('-', '/').replace('-', '/') }} ({{ i18n.tsx.yearsOld({ age }) }})
-
+
{{ i18n.ts.registeredDate }}
{{ dateString(user.createdAt) }} ()