mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
fix: bug where disparate ids all claiming to be the same handle were causing duplicate remote users due to collisions, #13352
This commit is contained in:
@@ -40,6 +40,11 @@ Helpers.mocks.person = (override = {}) => {
|
||||
};
|
||||
|
||||
activitypub._cache.set(`0;${id}`, actor);
|
||||
activitypub.helpers._webfingerCache.set(`${actor.preferredUsername}@example.org`, {
|
||||
actorUri: id,
|
||||
username: id,
|
||||
hostname: 'example.org',
|
||||
});
|
||||
|
||||
return { id, actor };
|
||||
};
|
||||
@@ -51,6 +56,11 @@ Helpers.mocks.group = (override = {}) => {
|
||||
});
|
||||
|
||||
activitypub._cache.set(`0;${id}`, actor);
|
||||
activitypub.helpers._webfingerCache.set(`${actor.preferredUsername}@example.org`, {
|
||||
actorUri: id,
|
||||
username: id,
|
||||
hostname: 'example.org',
|
||||
});
|
||||
|
||||
return { id, actor };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user