プロフィールの「ユーザーのノートを検索」でローカルのユーザーを検索できないのを修正
This commit is contained in:
parent
18d66c0233
commit
7ab05654cc
|
@ -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
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue