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