1
0
Fork 0

Only exclude relationship attrs for self

This commit is contained in:
Lim Chee Aun 2023-12-21 09:59:08 +08:00
parent a2189bf44b
commit 22b9a33d64

View file

@ -605,7 +605,9 @@ function AccountInfo({
heading: 'Followers', heading: 'Followers',
fetchAccounts: fetchFollowers, fetchAccounts: fetchFollowers,
instance, instance,
excludeRelationshipAttrs: ['followedBy'], excludeRelationshipAttrs: isSelf
? ['followedBy']
: [],
}; };
}, 0); }, 0);
}} }}
@ -640,7 +642,7 @@ function AccountInfo({
heading: 'Following', heading: 'Following',
fetchAccounts: fetchFollowing, fetchAccounts: fetchFollowing,
instance, instance,
excludeRelationshipAttrs: ['following'], excludeRelationshipAttrs: isSelf ? ['following'] : [],
}; };
}, 0); }, 0);
}} }}