A social knowledge tool for researchers built on ATProto

feat: pass callingUserId through similar URLs search use case

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

+3
+2
src/modules/search/application/useCases/queries/GetSimilarUrlsForUrlUseCase.ts
··· 7 8 export interface GetSimilarUrlsForUrlQuery { 9 url: string; 10 page?: number; 11 limit?: number; 12 threshold?: number; ··· 83 { 84 limit: limit * page, // Get more results to handle pagination 85 threshold, 86 }, 87 ); 88 console.log('Similar URLs result:', similarUrlsResult);
··· 7 8 export interface GetSimilarUrlsForUrlQuery { 9 url: string; 10 + callingUserId?: string; 11 page?: number; 12 limit?: number; 13 threshold?: number; ··· 84 { 85 limit: limit * page, // Get more results to handle pagination 86 threshold, 87 + callingUserId: query.callingUserId, 88 }, 89 ); 90 console.log('Similar URLs result:', similarUrlsResult);
+1
src/modules/search/infrastructure/http/controllers/GetSimilarUrlsForUrlController.ts
··· 18 19 const result = await this.getSimilarUrlsForUrlUseCase.execute({ 20 url, 21 page: page ? parseInt(page as string) : undefined, 22 limit: limit ? parseInt(limit as string) : undefined, 23 threshold: threshold ? parseFloat(threshold as string) : undefined,
··· 18 19 const result = await this.getSimilarUrlsForUrlUseCase.execute({ 20 url, 21 + callingUserId: req.did, // Pass through the authenticated user's DID 22 page: page ? parseInt(page as string) : undefined, 23 limit: limit ? parseInt(limit as string) : undefined, 24 threshold: threshold ? parseFloat(threshold as string) : undefined,