From 87d61a280e9824b6437ca0098bdb12ae63be4e81 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 7 May 2026 16:49:31 +0200 Subject: [PATCH] [Glitch] Fix "New collection" link appearing on other accounts' profiles Port 674e2685be97fbe2836179a269e7a69fc6347d00 to glitch-soc Signed-off-by: Claire --- .../glitch/features/account_featured/index.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/javascript/flavours/glitch/features/account_featured/index.tsx b/app/javascript/flavours/glitch/features/account_featured/index.tsx index d76a6de0ee..b8d18439b8 100644 --- a/app/javascript/flavours/glitch/features/account_featured/index.tsx +++ b/app/javascript/flavours/glitch/features/account_featured/index.tsx @@ -24,6 +24,7 @@ import Column from '@/flavours/glitch/features/ui/components/column'; import { useAccount } from '@/flavours/glitch/hooks/useAccount'; import { useAccountId } from '@/flavours/glitch/hooks/useAccountId'; import { useAccountVisibility } from '@/flavours/glitch/hooks/useAccountVisibility'; +import { me } from '@/flavours/glitch/initial_state'; import { useAppDispatch, useAppSelector } from '@/flavours/glitch/store'; import AddIcon from '@/material-icons/400-24px/add.svg?react'; @@ -173,12 +174,14 @@ const AccountFeatured: React.FC<{ multiColumn: boolean }> = ({ defaultMessage='Collections' /> - - - + {accountId === me && ( + + + + )} {hasCollections ? (