A social knowledge tool for researchers built on ATProto
45
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: pass EnvironmentConfigService as shared service and update collection string injection

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <aider@aider.chat>

+3 -3
+2 -2
src/shared/infrastructure/http/factories/ServiceFactory.ts
··· 61 61 feedService: FeedService; 62 62 nodeOauthClient: NodeOAuthClient; 63 63 identityResolutionService: IIdentityResolutionService; 64 + configService: EnvironmentConfigService; 64 65 } 65 66 66 67 // Web app specific services (includes publishers, auth middleware) ··· 73 74 cardCollectionService: CardCollectionService; 74 75 authMiddleware: AuthMiddleware; 75 76 eventPublisher: IEventPublisher; 76 - collectionString: string; 77 77 } 78 78 79 79 // Worker specific services (includes subscribers) ··· 176 176 cardCollectionService, 177 177 authMiddleware, 178 178 eventPublisher, 179 - collectionString: collections.collection, 180 179 }; 181 180 } 182 181 ··· 297 296 feedService, 298 297 nodeOauthClient, 299 298 identityResolutionService, 299 + configService, 300 300 }; 301 301 } 302 302 }
+1 -1
src/shared/infrastructure/http/factories/UseCaseFactory.ts
··· 166 166 services.identityResolutionService, 167 167 repositories.atUriResolutionService, 168 168 getCollectionPageUseCase, 169 - services.collectionString, 169 + services.configService.getAtProtoCollections().collection, 170 170 ), 171 171 getCollectionsUseCase: new GetCollectionsUseCase( 172 172 repositories.collectionQueryRepository,