mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 04:12:41 +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',
|
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);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue