Update get-user-menu.ts

This commit is contained in:
syuilo 2025-09-16 10:56:58 +09:00
parent 214d3ef35d
commit 901872e4fd
1 changed files with 10 additions and 0 deletions

View File

@ -215,6 +215,16 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
});
}
if ($i && meId === user.id) {
menuItems.push({
icon: 'ti ti-qrcode',
text: i18n.ts.qr,
action: () => {
router.push('/qr');
},
});
}
if (notesSearchAvailable && (user.host == null || canSearchNonLocalNotes)) {
menuItems.push({
icon: 'ti ti-search',