Antispam module's check_username_for_spam
raises a TypeError
when a user has no display name
#245
Labels
T-Defect
Something isn't working, this is a bug
Describe the bug
The Synapse documentation incorrectly claims that the
check_username_for_spam
callback receives auserprofile
that is aDict[str, str]
(synapse#12245). In practice, there can beNone
s in theuserprofile
dict, eg.This causes the antispam callback to raise an error:
https://sentry.matrix.org/sentry/synapse-matrixorg/issues/243697/
The text was updated successfully, but these errors were encountered: