1
0

upd: add ability to open remote profile in user dropdown

Closes transfem-org/Sharkey#176
This commit is contained in:
Mar0xy
2023-11-27 22:17:03 +01:00
parent 3d0b754332
commit 958b97a50c
4 changed files with 10 additions and 1 deletions
@@ -176,7 +176,13 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
const canonical = user.host === null ? `@${user.username}` : `@${user.username}@${toUnicode(user.host)}`;
copyToClipboard(`${url}/${canonical}`);
},
}, {
}, ...(user.host ? [{
icon: 'ph-share ph-bold ph-lg',
text: i18n.ts.openRemoteProfile,
action: () => {
open(`${user.uri}`, '_blank');
},
}] : []), {
icon: 'ph-envelope ph-bold ph-lg',
text: i18n.ts.sendMessage,
action: () => {