From 4a3fa83bd10f8b049bd362043696b07022aa9cfb Mon Sep 17 00:00:00 2001 From: Spence Pope Date: Fri, 23 Oct 2026 18:16:18 -0400 Subject: [PATCH] Read your own profile links from the profile view (#12181) --- .../profileLinks/components/ProfileLinks.tsx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/features/profileLinks/components/ProfileLinks.tsx b/src/features/profileLinks/components/ProfileLinks.tsx index adc6d5673..f2075e39e 100644 --- a/src/features/profileLinks/components/ProfileLinks.tsx +++ b/src/features/profileLinks/components/ProfileLinks.tsx @@ -26,11 +26,7 @@ import {type app} from '#/lexicons' import {PILL_LEFT, PILL_RIGHT_TEXT, PILL_VERTICAL} from '../pillSize' import {getLinkHost, getSupportProvider} from '../providers' import {buildProfileRow, GERM_KEY} from '../row' -import { - useOwnProfileLinksQuery, - useProfileLinksEnabled, - useProfileViewLinks, -} from '../state' +import {useProfileLinksEnabled, useProfileViewLinks} from '../state' import {type ProfileLink} from '../types' import {LinkHoverPreview} from './LinkHoverPreview' import {ProfileLinkPill} from './LinkPill' @@ -63,16 +59,8 @@ export function ProfileHeaderLinks({ const {currentAccount} = useSession() const enabled = useProfileLinksEnabled() const isOwnProfile = currentAccount?.did === profile.did - /* - * The owner's row comes from their repo: it reflects a save before the - * AppView catches up, and editing needs the stored icon blobs. - */ const viewLinks = useProfileViewLinks(profile) - const {data: ownLinks} = useOwnProfileLinksQuery(profile.did, { - enabled: enabled && !hidden && isOwnProfile, - }) - const links = - !enabled || hidden ? [] : isOwnProfile ? (ownLinks ?? []) : viewLinks + const links = !enabled || hidden ? [] : viewLinks const supportLinkCount = links.filter(link => getSupportProvider(link.url), ).length -- knotmirror 0.0.1