mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
Only exclude relationship attrs for self
This commit is contained in:
parent
a2189bf44b
commit
22b9a33d64
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue