mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 15:05:05 -04:00
Limit displaynames and avatar URLs
These end up in join events everywhere, so let's limit them. Fixes #5079
This commit is contained in:
parent
e26e6b3230
commit
d16c6375fe
3 changed files with 16 additions and 0 deletions
|
@ -531,6 +531,8 @@ class RegistrationHandler(BaseHandler):
|
|||
A tuple of (user_id, access_token).
|
||||
Raises:
|
||||
RegistrationError if there was a problem registering.
|
||||
|
||||
NB this is only used in tests. TODO: move it to the test package!
|
||||
"""
|
||||
if localpart is None:
|
||||
raise SynapseError(400, "Request must include user id")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue