From 22b9a33d64ef6d4a3dd6689b6108d0ccfb7d6908 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 21 Dec 2023 09:59:08 +0800 Subject: [PATCH] Only exclude relationship attrs for self --- src/components/account-info.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index 010a4f13..a0d7c195 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -605,7 +605,9 @@ function AccountInfo({ heading: 'Followers', fetchAccounts: fetchFollowers, instance, - excludeRelationshipAttrs: ['followedBy'], + excludeRelationshipAttrs: isSelf + ? ['followedBy'] + : [], }; }, 0); }} @@ -640,7 +642,7 @@ function AccountInfo({ heading: 'Following', fetchAccounts: fetchFollowing, instance, - excludeRelationshipAttrs: ['following'], + excludeRelationshipAttrs: isSelf ? ['following'] : [], }; }, 0); }}