This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Uniformize spam-checker API, part 5: expand other spam-checker callbacks to return Tuple[Codes, dict]
#13044
Merged
Merged
Changes from 13 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
000a104
Uniformize spam-checker API, part 5: expand other spam-checker callba…
Yoric e71aacd
WIP: lint
Yoric 2f3c8f7
WIP: Lint
Yoric e714f8d
Signed-off-by: David Teller <davidt@element.io>
Yoric f97cd9d
WIP: New tests
Yoric 102daec
WIP: Linting
Yoric 2710757
WIP: Fixing test
Yoric b31f254
WIP: Oops, let's not forget 3.7 with our tests
Yoric 5c3487d
WIP: Linting
Yoric c3ba900
WIP: Missing import
Yoric 9792cd5
WIP: Linting
Yoric 27788f7
WIP: Wait a second, what happened to the ability for check_event_for_…
Yoric f06e8e2
WIP: Linting
Yoric 0577319
WIP: Applied feedback
Yoric f6baf7e
WIP: Applying feedback
Yoric 2578f74
WIP: Moar tests
Yoric f99a7e6
WIP: Moar tests
Yoric 384e5a7
WIP: Linting
Yoric be47500
Merge branch 'develop' of github.com:matrix-org/synapse into yoric/sp…
Yoric fb10a60
WIP: Now with tests that actually pass
Yoric b44033e
WIP: More tests
Yoric 3687890
WIP: Applied feedback
Yoric 0302d36
WIP
Yoric 921b2a9
WIP: Using parameterized for test
Yoric 1301055
WIP: Lint
Yoric bd45041
Merge branch 'develop' of github.com:matrix-org/synapse into yoric/sp…
babolivier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Experimental: expand Spam-Checker API callbacks of `user_may_join_room`, `user_may_invite`, `user_may_send_3pid_invite`, `user_may_create_room`, `user_may_create_room_alias`, `user_may_publish_room`, `check_media_file_for_spam` with ability to return additional fields. This enables spam-checker implementations to experiment with mechanisms to give users more information about why they are blocked and whether any action is needed from them to be unblocked. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.