This commit is contained in:
果物リン 2025-09-20 06:08:15 +00:00 committed by GitHub
commit cae57bdb0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 4 deletions

View File

@ -230,11 +230,16 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
icon: 'ti ti-search',
text: i18n.ts.searchThisUsersNotes,
action: () => {
router.push('/search', {
query: {
const query = {
username: user.username,
host: user.host ?? undefined,
},
} as { username: string, host?: string };
if (user.host !== null) {
query.host = user.host;
}
router.push('/search', {
query
});
},
});