-
Notifications
You must be signed in to change notification settings - Fork 224
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
Refactor get_profile: do not return missing fields. #18063
Conversation
Actually I think this is missing one change to the servlet which makes the changes a bit clearer of why we want them. |
@clokep Should we mark this as a draft until that's done? |
Whatever works in your process. I won't have time to get to it today. |
@anoadragon453 This should be ready to review now. |
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.
LGTM! Nice idea to use a constant to differentiate from custom ones. And thanks for splitting this out.
Refactor
get_profile
to avoid returning "empty" (None
/null
) fields. Currently this is not very important, but will be more useful once #17488 lands. It does update the servlet to use this now which has a minor change in behavior: additional fields served over federation will now be properly sent back to clients.It also adds constants for
avatar_url
/displayname
although I did not attempt to use it everywhere possible.Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)