+6
-6
server/services/xrpc/services/actor-service.ts
+6
-6
server/services/xrpc/services/actor-service.ts
···
16
16
getSuggestedFollowsByActorSchema,
17
17
suggestedUsersUnspeccedSchema,
18
18
} from '../schemas';
19
-
import { getProfiles } from "../utils/profile-builder";
19
+
import { getProfiles as buildProfiles } from "../utils/profile-builder";
20
20
import { onDemandBackfill } from '../../on-demand-backfill';
21
21
22
22
/**
···
28
28
const params = getProfileSchema.parse(req.query);
29
29
30
30
// Use legacy API's _getProfiles helper for complex profile serialization
31
-
const profiles = await getProfiles([params.actor], req);
31
+
const profiles = await buildProfiles([params.actor], req);
32
32
33
33
if (profiles.length === 0) {
34
34
// Profile not found - trigger on-demand backfill from their PDS
···
76
76
const params = getProfilesSchema.parse(req.query);
77
77
78
78
// Use legacy API's _getProfiles helper for complex profile serialization
79
-
const profiles = await getProfiles(params.actors, req);
79
+
const profiles = await buildProfiles(params.actors, req);
80
80
81
81
res.json({ profiles });
82
82
} catch (error) {
···
108
108
const userDids = users.map((u) => u.did);
109
109
110
110
// Use the full _getProfiles helper to build complete profileView objects
111
-
const actors = await getProfiles(userDids, req);
111
+
const actors = await buildProfiles(userDids, req);
112
112
113
113
// Build response with optional cursor and recId
114
114
const response: {
···
161
161
162
162
// Build full profileView objects using _getProfiles helper
163
163
const suggestionDids = suggestions.map((u) => u.did);
164
-
const profiles = await getProfiles(suggestionDids, req);
164
+
const profiles = await buildProfiles(suggestionDids, req);
165
165
166
166
// Generate recId for recommendation tracking (snowflake-like ID)
167
167
// Using timestamp + random component for uniqueness
···
201
201
const userDids = users.map((u) => u.did);
202
202
203
203
// Use the full _getProfiles helper to build complete profileView objects
204
-
const actors = await getProfiles(userDids, req);
204
+
const actors = await buildProfiles(userDids, req);
205
205
206
206
res.json({ actors });
207
207
} catch (error) {