From 7db2a99504692781cd0d59b9c7ac0b1a41ee0e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Thu, 2 Jul 2026 14:45:21 +0200 Subject: [PATCH] Don't display 'view collection' menu item on collection page (#39694) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../collections/components/collection_menu.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/javascript/mastodon/features/collections/components/collection_menu.tsx b/app/javascript/mastodon/features/collections/components/collection_menu.tsx index f9d7e18157..0d0e97eb9e 100644 --- a/app/javascript/mastodon/features/collections/components/collection_menu.tsx +++ b/app/javascript/mastodon/features/collections/components/collection_menu.tsx @@ -163,11 +163,7 @@ export const CollectionMenu: React.FC<{ return ownerItems; } } else { - const nonOwnerItems: MenuItem[] = [ - viewCollectionItem, - ...shareItems, - null, - ]; + const nonOwnerItems: MenuItem[] = [...shareItems, null]; // Collection notifications already have a prominent 'Remove me' button if (currentAccountInCollection && context !== 'notifications') { @@ -189,6 +185,10 @@ export const CollectionMenu: React.FC<{ }); } + if (context !== 'collection') { + return [viewCollectionItem, ...nonOwnerItems]; + } + return nonOwnerItems; } }, [