mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 13:35:12 +00:00
remove cached public keys after deletion
This commit is contained in:
parent
55df1ad10f
commit
78a75171c2
1 changed files with 1 additions and 3 deletions
|
@ -176,9 +176,7 @@ export class ApDbResolverService implements OnApplicationShutdown {
|
|||
public async refetchPublicKeyForApId(user: MiRemoteUser): Promise<MiUserPublickey | null> {
|
||||
await this.apPersonService.updatePerson(user.uri);
|
||||
const key = await this.userPublickeysRepository.findOneBy({ userId: user.id });
|
||||
if (key != null) {
|
||||
await this.publicKeyByUserIdCache.set(user.id, key);
|
||||
}
|
||||
this.publicKeyByUserIdCache.set(user.id, key);
|
||||
return key;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue