-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add config options to drop invites matching certain criteria #530
Conversation
Add `email.third_party_invite_homeserver_blocklist` and `email.third_party_invite_room_blocklist` config options to block invites from a list of homeservers or for a list of rooms.
) | ||
self.third_party_invite_homeserver_blocklist = { | ||
server | ||
for server in third_party_invite_homeserver_blocklist.split("\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we insert newlines in the config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, like so:
some_section.some_list_option =
item1
item2
I started with comma separated strings, but that looked unwieldy with long lists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
This needs a changelog btw! |
Add
email.third_party_invite_homeserver_blocklist
andemail.third_party_invite_room_blocklist
config options to blockinvites from a list of homeservers or for a list of rooms.