Commit Graph

293 Commits (988de0afb0469d9ee85fedcd7f1eb34af7d28db5)

Author SHA1 Message Date
reivilibre 3828dd819b
Pass through `SynapseError`s that are raised from experimental `check_event_allowed` callback of the module API (#11042) 3 years ago
Brendan Abolivier 4e51621064
Add a spamchecker method to allow or deny 3pid invites (#10894) 3 years ago
Brendan Abolivier 829f2a82b0
Add a spamchecker callback to allow or deny room joins (#10910) 3 years ago
Patrick Cloke 32072dcdac Strip "join_authorised_via_users_server" from join events which do not need it. (#10933) 3 years ago
Patrick Cloke d1bf5f7c9d
Strip "join_authorised_via_users_server" from join events which do not need it. (#10933) 3 years ago
Patrick Cloke 94b620a5ed
Use direct references for configuration variables (part 6). (#10916) 3 years ago
Richard van der Hoff 5279b9161b
Use `RoomVersion` objects (#10934) 3 years ago
Brendan Abolivier b10257e879
Add a spamchecker callback to allow or deny room creation based on invites (#10898) 3 years ago
Patrick Cloke bb7fdd821b
Use direct references for configuration variables (part 5). (#10897) 3 years ago
Richard van der Hoff 26f2bfedbf
Factor out a separate `EventContext.for_outlier` (#10883) 3 years ago
Richard van der Hoff 4ecf51812e
Include outlier status in `str(event)` for V2/V3 events (#10879) 3 years ago
Eric Eastwood 51e2db3598
Rename MSC2716 things from `chunk` to `batch` to match `/batch_send` endpoint (#10838) 3 years ago
Patrick Cloke 01c88a09cd
Use direct references for some configuration variables (#10798) 3 years ago
Patrick Cloke ae3c16318b
Support MSC3375: room version 9. (#10747) 3 years ago
Aaron Raimist 40f619eaa5
Validate new m.room.power_levels events (#10232) 3 years ago
Azrenbeth 1a9f531c79
Port the PresenceRouter module interface to the new generic interface (#10524) 3 years ago
Richard van der Hoff 2d9ca4ca77
Clean up some logging in the federation event handler (#10591) 3 years ago
Eric Eastwood 7afb615839
When redacting, keep event fields around that maintain the historical event structure intact (MSC2716) (#10538) 3 years ago
Eric Eastwood d0b294ad97
Make historical events discoverable from backfill for servers without any scrollback history (MSC2716) (#10245) 3 years ago
Patrick Cloke 752fe0cd98
Restricted rooms (MSC3083) should not have their allow key redacted. (#10489) 3 years ago
Brendan Abolivier a743bf4694
Port the ThirdPartyEventRules module interface to the new generic interface (#10386) 3 years ago
Patrick Cloke d427f64724
Do not include signatures/hashes in make_{join,leave,knock} responses. (#10404) 3 years ago
Jonathan de Jong bf72d10dbf
Use inline type hints in various other places (in `synapse/`) (#10380) 3 years ago
Patrick Cloke 8d609435c0
Move methods involving event authentication to EventAuthHandler. (#10268) 3 years ago
Patrick Cloke aaf7d1acb8
Correct type hints for synapse.event_auth. (#10253) 3 years ago
Brendan Abolivier c955e37868
Fix wrapping of legacy check_registration_for_spam (#10238) 3 years ago
Eric Eastwood 96f6293de5
Add endpoints for backfilling history (MSC2716) (#9247) 3 years ago
Brendan Abolivier 1b3e398bea
Standardise the module interface (#10062) 3 years ago
Sorunome d936371b69
Implement knock feature (#6739) 4 years ago
Patrick Cloke bb4b11846f
Add missing type hints to handlers and fix a Spam Checker type hint. (#9896) 4 years ago
Richard van der Hoff 294c675033
Remove `synapse.types.Collection` (#9856) 4 years ago
Jonathan de Jong 4b965c862d
Remove redundant "coding: utf-8" lines (#9786) 4 years ago
Jonathan de Jong 2ca4e349e9
Bugbear: Add Mutable Parameter fixes (#9682) 4 years ago
Andrew Morgan 04819239ba
Add a Synapse Module for configuring presence update routing (#9491) 4 years ago
Patrick Cloke af387cf52a
Add type hints to misc. files. (#9676) 4 years ago
Andrew Morgan 7b06f85c0e
Ensure we use a copy of the event content dict before modifying it in serialize_event (#9585) 4 years ago
Richard van der Hoff 567f88f835
Prep work for removing `outlier` from `internal_metadata` (#9411) 4 years ago
Andrew Morgan 847ecdd8fa
Pass SSO IdP information to spam checker's registration function (#9626) 4 years ago
Eric Eastwood 0a00b7ff14
Update black, and run auto formatting over the codebase (#9381) 4 years ago
Erik Johnston 7e8083eb48 Add check_media_file_for_spam spam checker hook 4 years ago
Richard van der Hoff 9ffac2bef1
Remote dependency on distutils (#9125) 4 years ago
Patrick Cloke 9dde9c9f01
Implement MSC2176: Updated redaction rules (#8984) 4 years ago
David Teller f14428b25c
Allow spam-checker modules to be provide async methods. (#8890) 4 years ago
Patrick Cloke 473dfec1e5
Use TYPE_CHECKING instead of magic MYPY variable. (#8770) 4 years ago
Erik Johnston 243d427fbc
Block clients from sending server ACLs that lock the local server out. (#8708) 4 years ago
Richard van der Hoff 0073fe914a
Use `%r` rather than `%s` for stringifying events (#8679) 4 years ago
Patrick Cloke 34a5696f93
Fix typos and spelling errors. (#8639) 4 years ago
Richard van der Hoff da0090fdff
Fix modifying events in `ThirdPartyRules` modules (#8564) 4 years ago
Brendan Abolivier 3ee97a2748
Make sure a retention policy is a state event (#8527) 4 years ago
Richard van der Hoff a34b17e492 Simplify `_locally_reject_invite` 4 years ago