mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: do not retrieve remote outbox count when asserting actor
This change means that a remote user's post count is only the number of posts they have stored locally. This is easier to reconcile with the profile UI since showing the artificial number could cause issues if the local instance contains fewer or no posts by that user. fixes #12646
This commit is contained in:
@@ -39,7 +39,7 @@ Mocks.profile = async (actors) => {
|
||||
let {
|
||||
url, preferredUsername, published, icon, image,
|
||||
name, summary, followers, followerCount, followingCount,
|
||||
postcount, inbox, endpoints,
|
||||
inbox, endpoints,
|
||||
} = actor;
|
||||
preferredUsername = preferredUsername || slugify(name);
|
||||
|
||||
@@ -68,7 +68,6 @@ Mocks.profile = async (actors) => {
|
||||
'cover:url': !image || typeof image === 'string' ? image : image.url,
|
||||
'cover:position': '50% 50%',
|
||||
aboutme: summary,
|
||||
postcount,
|
||||
followerCount,
|
||||
followingCount,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user