summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/ActivityPubServerService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-05 12:10:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-05 12:10:40 +0900
commit28647de1968995e294e2ade365a29685df91eae6 (patch)
treebcef82f8e1560872fd93369ce15b31b63fde856a /packages/backend/src/server/ActivityPubServerService.ts
parentadd note (diff)
downloadsharkey-28647de1968995e294e2ade365a29685df91eae6.tar.gz
sharkey-28647de1968995e294e2ade365a29685df91eae6.tar.bz2
sharkey-28647de1968995e294e2ade365a29685df91eae6.zip
enhance(backend): improve userkeypair cache
Diffstat (limited to 'packages/backend/src/server/ActivityPubServerService.ts')
-rw-r--r--packages/backend/src/server/ActivityPubServerService.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts
index da8d0114e5..5799622074 100644
--- a/packages/backend/src/server/ActivityPubServerService.ts
+++ b/packages/backend/src/server/ActivityPubServerService.ts
@@ -12,7 +12,7 @@ import type { Config } from '@/config.js';
import { ApRendererService } from '@/core/activitypub/ApRendererService.js';
import { QueueService } from '@/core/QueueService.js';
import type { LocalUser, User } from '@/models/entities/User.js';
-import { UserKeypairStoreService } from '@/core/UserKeypairStoreService.js';
+import { UserKeypairService } from '@/core/UserKeypairService.js';
import type { Following } from '@/models/entities/Following.js';
import { countIf } from '@/misc/prelude/array.js';
import type { Note } from '@/models/entities/Note.js';
@@ -58,7 +58,7 @@ export class ActivityPubServerService {
private userEntityService: UserEntityService,
private apRendererService: ApRendererService,
private queueService: QueueService,
- private userKeypairStoreService: UserKeypairStoreService,
+ private userKeypairService: UserKeypairService,
private queryService: QueryService,
) {
//this.createServer = this.createServer.bind(this);
@@ -540,7 +540,7 @@ export class ActivityPubServerService {
return;
}
- const keypair = await this.userKeypairStoreService.getUserKeypair(user.id);
+ const keypair = await this.userKeypairService.getUserKeypair(user.id);
if (this.userEntityService.isLocalUser(user)) {
reply.header('Cache-Control', 'public, max-age=180');