-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use detailed profile view for getSuggestions
#2596
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one! Get Devin's final sign off, but lgtm
"ref": "app.bsky.actor.defs#profileView" | ||
"ref": "app.bsky.actor.defs#profileViewDetailed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One intentional feature of the way knownFollowers
was added to ViewerState
is that it's decoupled from whether we serve a ProfileView
vs. ProfileViewDetailed
. This is nice because it means we can sprinkle knownFollowers
wherever we want it without converting all those areas to detailed views.
@mozzius @estrattonbailey How would we feel about instead leaving the lexicons unchanged and just adding knownFollowers
into the ViewerState
s served from this endpoint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be perfectly happy with this!
@devinivy I added a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!! Adding a new view like this is a simple improvement, hard to go wrong 👍
I think we'll still want to align what we're hydrating with what we're presenting, which this change doesn't quite get us. But I can hit that in some followup work. In the spirit of keeping all the view/hydration wires exposed in the route handlers, the way I'd do this would probably be to add an option to the profile hydration and profile view methods that determines whether knownFollowers
should be included.
Allows us to show social proof in the suggested follows section. Includes a minor lexicon change from
ProfileView
toProfileViewDetailed
, but I don't think the AppView is doing much more work here - seems like it's fetching the detailed profile views already but just not sending them