Combine `SpamCheckerApi` with the more generic `ModuleApi`. (#8464)
Lots of different module apis is not easy to maintain. Rather than adding yet another ModuleApi(hs, hs.get_auth_handler()) incantation, first add an hs.get_module_api() method and use it where possible.
Showing
- changelog.d/8464.misc 1 addition, 0 deletionschangelog.d/8464.misc
- docs/spam_checker.md 3 additions, 6 deletionsdocs/spam_checker.md
- synapse/app/homeserver.py 1 addition, 2 deletionssynapse/app/homeserver.py
- synapse/events/spamcheck.py 3 additions, 2 deletionssynapse/events/spamcheck.py
- synapse/events/third_party_rules.py 1 addition, 2 deletionssynapse/events/third_party_rules.py
- synapse/handlers/auth.py 7 additions, 0 deletionssynapse/handlers/auth.py
- synapse/module_api/__init__.py 28 additions, 1 deletionsynapse/module_api/__init__.py
- synapse/server.py 5 additions, 0 deletionssynapse/server.py
- synapse/spam_checker_api/__init__.py 0 additions, 43 deletionssynapse/spam_checker_api/__init__.py
- tests/module_api/test_api.py 2 additions, 2 deletionstests/module_api/test_api.py
Loading
Please register or sign in to comment