mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
プロフィールの「ユーザーのノートを検索」でローカルのユーザーを検索できないのを修正 (#16570)
* プロフィールの「ユーザーのノートを検索」でローカルのユーザーを検索できないのを修正 * fix lint
This commit is contained in:
@@ -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
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user