From 18260e1a635025ec551d6968545943fe3b21cc7b Mon Sep 17 00:00:00 2001 From: freeplay Date: Sun, 16 Jul 2023 17:46:30 -0400 Subject: [PATCH] feat: add view on remote server to user profile dropdowns --- packages/client/src/scripts/get-user-menu.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/client/src/scripts/get-user-menu.ts b/packages/client/src/scripts/get-user-menu.ts index 48b97fed62..2750df65b6 100644 --- a/packages/client/src/scripts/get-user-menu.ts +++ b/packages/client/src/scripts/get-user-menu.ts @@ -260,6 +260,15 @@ export function getUserMenu(user, router: Router = mainRouter) { to: `/my/messaging/${Acct.toString(user)}`, } : undefined, + user.host != null && user.url + ? { + type: "a", + icon: "ph-arrow-square-out ph-bold ph-lg", + text: i18n.ts.showOnRemote, + href: user.url, + target: "_blank", + + } : undefined, null, { icon: "ph-list-bullets ph-bold ph-lg",