Skip to content
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

Fix block_usernames config option #246

Merged
merged 1 commit into from
Mar 21, 2022
Merged

Conversation

DMRobertson
Copy link
Contributor

Fixes #244.

We've made the same (unfortunate) mistake before in matrix-org/message_limit@a6e4709; see also matrix-org/synapse@73fc488.

@DMRobertson DMRobertson marked this pull request as ready for review March 17, 2022 16:58
@Gnuxie Gnuxie self-requested a review March 17, 2022 17:23
Copy link
Contributor

@Gnuxie Gnuxie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, is anything else being done about this in Synapse? I don't feel very confident that the explanation and improvements to documentation will stop this from happening again :/

@DMRobertson
Copy link
Contributor Author

Thanks, is anything else being done about this in Synapse? I don't feel very confident that the explanation and improvements to documentation will stop this from happening again :/

I think I'll defer to @babolivier on that one.

@jesopo
Copy link
Contributor

jesopo commented Mar 18, 2022

I did have an idea about how to fix this more intuitively; if these functions could be instead returning an enum like Action.BLOCK, you'd never have to read the function name to figure out what the return is doing

@DMRobertson
Copy link
Contributor Author

I did have an idea about how to fix this more intuitively; if these functions could be instead returning an enum like Action.BLOCK, you'd never have to read the function name to figure out what the return is doing

Agreed; the difficulty will be doing that in a backwards compatible manner.

@Gnuxie
Copy link
Contributor

Gnuxie commented Mar 21, 2022

@DMRobertson are you unable to merge this or is there something else you're waiting on?

@DMRobertson
Copy link
Contributor Author

@Gnuxie not waiting on anything; was just politely deferring to T&S as the owners of this repo. I can press the button now.

@DMRobertson DMRobertson merged commit 95d394b into main Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Antispam: check_username_as_spam marks all users as spammy when block_usernames is False.
3 participants