プロフィールの「ユーザーのノートを検索」でローカルのユーザーを検索できないのを修正

This commit is contained in:
FruitRiin 2025-09-19 23:56:04 +09:00
parent 18d66c0233
commit 7ab05654cc
1 changed files with 7 additions and 4 deletions

View File

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