From d7213d97a7d952d7d667ad50e1b7f509507d561f 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] [Glitch] Don't display 'view collection' menu item on collection page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port 392798a52ca24c97e7b21bfab7d6c491e0241132 to glitch-soc Signed-off-by: nicole mikołajczyk Signed-off-by: Claire --- .../collections/components/collection_menu.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/javascript/flavours/glitch/features/collections/components/collection_menu.tsx b/app/javascript/flavours/glitch/features/collections/components/collection_menu.tsx index 709fd1a522..38c75ae538 100644 --- a/app/javascript/flavours/glitch/features/collections/components/collection_menu.tsx +++ b/app/javascript/flavours/glitch/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; } }, [