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; } }, [