From ee439f9c7ffcf7c28236e2b26535734e6db3b8f9 Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 9 Oct 2024 17:07:43 +0100 Subject: [PATCH] remove MetaService from ActivityPubServerService --- packages/backend/src/server/ActivityPubServerService.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts index 204c50dea3..8d86e63ecd 100644 --- a/packages/backend/src/server/ActivityPubServerService.ts +++ b/packages/backend/src/server/ActivityPubServerService.ts @@ -21,7 +21,6 @@ import { ApRendererService } from '@/core/activitypub/ApRendererService.js'; import { ApDbResolverService } from '@/core/activitypub/ApDbResolverService.js'; import { QueueService } from '@/core/QueueService.js'; import type { MiLocalUser, MiRemoteUser, MiUser } from '@/models/User.js'; -import { MetaService } from '@/core/MetaService.js'; import { UserKeypairService } from '@/core/UserKeypairService.js'; import { InstanceActorService } from '@/core/InstanceActorService.js'; import type { MiUserPublickey } from '@/models/UserPublickey.js'; @@ -75,7 +74,6 @@ export class ActivityPubServerService { @Inject(DI.followRequestsRepository) private followRequestsRepository: FollowRequestsRepository, - private metaService: MetaService, private utilityService: UtilityService, private userEntityService: UserEntityService, private instanceActorService: InstanceActorService, @@ -175,7 +173,6 @@ export class ActivityPubServerService { return true; } - const meta = await this.metaService.fetch(); if (this.utilityService.isFederationAllowedHost(keyHost)) { /* blocked instance: refuse (we don't care if the signature is good, if they even pretend to be from a blocked instance,