diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2025-01-03 12:23:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-03 17:23:29 +0000 |
commit | 6306de8e162479c51032cb8440ced9b125ed0927 (patch) | |
tree | 7416b78f4d11fd4d95b97992dc5d5caaee0bf18e /synapse/util/stringutils.py | |
parent | Add a test to verify remote user messages can be redacted via admin api redac... (diff) | |
download | synapse-6306de8e162479c51032cb8440ced9b125ed0927.tar.xz |
Refactor get_profile: do not return missing fields. (#18063)
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.
Diffstat (limited to 'synapse/util/stringutils.py')
0 files changed, 0 insertions, 0 deletions