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:
Julian Lam
2025-04-22 15:12:56 -04:00
parent 3e508d6c65
commit c2a3ef817d
4 changed files with 39 additions and 0 deletions

View File

@@ -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 };
};