This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
check_username_for_spam
's documentation incorrectly claims that avatar_url
and display_name
are never None
#12245
Labels
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
The Synapse documentation claims that the
check_username_for_spam
spam checker callback receives auserprofile
that is aDict[str, str]
. In practice, there can beNone
s in theuserprofile
dict, eg.See https://sentry.matrix.org/sentry/synapse-matrixorg/issues/243697/ for examples of
userprofile
s with missing avatars and display names.docs/modules/spam_checker_callbacks.md
andCHECK_USERNAME_FOR_SPAM_CALLBACK
could do with an update.The text was updated successfully, but these errors were encountered: