use full profile in suggested users response (#3724)
* use full profile in suggested users response * Codegen * Changeset --------- Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
parent
01f2bd13eb
commit
8b7bf7e8f0
.changeset
lexicons/app/bsky/unspecced
packages
api/src/client
bsky/src
api/app/bsky/unspecced
lexicon
ozone/src/lexicon
pds/src/lexicon
6
.changeset/unlucky-masks-sniff.md
Normal file
6
.changeset/unlucky-masks-sniff.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@atproto/bsky": patch
|
||||
"@atproto/api": patch
|
||||
---
|
||||
|
||||
Return `ProfileView` from `getSuggestedUsers` unspecced endpoint
|
@ -30,7 +30,7 @@
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#profileViewBasic"
|
||||
"ref": "app.bsky.actor.defs#profileView"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10078,7 +10078,7 @@ export const schemaDict = {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
||||
ref: 'lex:app.bsky.actor.defs#profileView',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -25,7 +25,7 @@ export interface QueryParams {
|
||||
export type InputSchema = undefined
|
||||
|
||||
export interface OutputSchema {
|
||||
actors: AppBskyActorDefs.ProfileViewBasic[]
|
||||
actors: AppBskyActorDefs.ProfileView[]
|
||||
}
|
||||
|
||||
export interface CallOptions {
|
||||
|
@ -84,12 +84,12 @@ const hydration = async (
|
||||
if (params.viewer) {
|
||||
pairs.set(params.viewer, dids)
|
||||
}
|
||||
const [profileBasicState, bidirectionalBlocks] = await Promise.all([
|
||||
ctx.hydrator.hydrateProfilesBasic(dids, params.hydrateCtx),
|
||||
const [profilesState, bidirectionalBlocks] = await Promise.all([
|
||||
ctx.hydrator.hydrateProfiles(dids, params.hydrateCtx),
|
||||
ctx.hydrator.hydrateBidirectionalBlocks(pairs),
|
||||
])
|
||||
|
||||
return mergeManyStates(profileBasicState, { bidirectionalBlocks })
|
||||
return mergeManyStates(profilesState, { bidirectionalBlocks })
|
||||
}
|
||||
|
||||
const noBlocksOrFollows = (
|
||||
@ -115,7 +115,7 @@ const presentation = (
|
||||
const { ctx, skeleton, hydration } = input
|
||||
return {
|
||||
actors: mapDefined(skeleton.dids, (did) =>
|
||||
ctx.views.profileBasic(did, hydration),
|
||||
ctx.views.profile(did, hydration),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
@ -10078,7 +10078,7 @@ export const schemaDict = {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
||||
ref: 'lex:app.bsky.actor.defs#profileView',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -26,7 +26,7 @@ export interface QueryParams {
|
||||
export type InputSchema = undefined
|
||||
|
||||
export interface OutputSchema {
|
||||
actors: AppBskyActorDefs.ProfileViewBasic[]
|
||||
actors: AppBskyActorDefs.ProfileView[]
|
||||
}
|
||||
|
||||
export type HandlerInput = undefined
|
||||
|
@ -10078,7 +10078,7 @@ export const schemaDict = {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
||||
ref: 'lex:app.bsky.actor.defs#profileView',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -26,7 +26,7 @@ export interface QueryParams {
|
||||
export type InputSchema = undefined
|
||||
|
||||
export interface OutputSchema {
|
||||
actors: AppBskyActorDefs.ProfileViewBasic[]
|
||||
actors: AppBskyActorDefs.ProfileView[]
|
||||
}
|
||||
|
||||
export type HandlerInput = undefined
|
||||
|
@ -10078,7 +10078,7 @@ export const schemaDict = {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'ref',
|
||||
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
||||
ref: 'lex:app.bsky.actor.defs#profileView',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -26,7 +26,7 @@ export interface QueryParams {
|
||||
export type InputSchema = undefined
|
||||
|
||||
export interface OutputSchema {
|
||||
actors: AppBskyActorDefs.ProfileViewBasic[]
|
||||
actors: AppBskyActorDefs.ProfileView[]
|
||||
}
|
||||
|
||||
export type HandlerInput = undefined
|
||||
|
Loading…
x
Reference in New Issue
Block a user