enhance(frontend): リモートのユーザーはメニューから直接リモートで表示できるように

This commit is contained in:
kakkokari-gtyih 2024-01-26 21:46:27 +09:00
parent 7beb4ed131
commit ce93f8e041
1 changed files with 8 additions and 1 deletions

View File

@ -170,7 +170,14 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
action: () => { action: () => {
copyToClipboard(`${user.host ?? host}/@${user.username}.atom`); copyToClipboard(`${user.host ?? host}/@${user.username}.atom`);
}, },
}, { }, ...(user.host !== null && user.url !== null ? [{
icon: 'ti ti-external-link',
text: i18n.ts.showOnRemote,
action: () => {
if (user.url === null) return;
window.open(user.url, '_blank', 'noopener');
},
}] : []), {
icon: 'ti ti-share', icon: 'ti ti-share',
text: i18n.ts.copyProfileUrl, text: i18n.ts.copyProfileUrl,
action: () => { action: () => {