From 6ddb96a392cb5f4dc990ca064d8d81408a434f1c 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 48b97fed6..2750df65b 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",