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',
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);
}}