From 7f43e76a898c676f058fd96e3acb358784499b84 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sat, 15 Apr 2023 09:19:58 -0400 Subject: [PATCH] fix cache update --- packages/backend/src/core/activitypub/models/ApPersonService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index 6c225de333..7e5a03b103 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -527,7 +527,7 @@ export class ApPersonService implements OnModuleInit { await this.updateFeatured(exist.id, resolver).catch(err => this.logger.error(err)); - this.cacheService.uriPersonCache.set(uri, Object.assign(exist, updates)); + this.cacheService.uriPersonCache.set(uri, { ...exist, ...updates }); // Copy blocking and muting if we know its moving for the first time. if (!exist.movedToUri && updates.movedToUri) {