diff options
author | Jason Robinson <jasonr@element.io> | 2021-08-04 13:40:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 10:40:25 +0000 |
commit | c2000ab35b76288a625f598d2382d4e3f29f65f6 (patch) | |
tree | b0f5bdd7e9fe5fb2002d0cf166ce73b2c16d336f /synapse/module_api | |
parent | Add warnings to ip_range_blacklist usage with proxies (#10129) (diff) | |
download | synapse-c2000ab35b76288a625f598d2382d4e3f29f65f6.tar.xz |
Add `get_userinfo_by_id` method to `ModuleApi` (#9581)
Makes it easier to fetch user details in for example spam checker modules, without needing to use api._store or figure out database interactions. Signed-off-by: Jason Robinson <jasonr@matrix.org>
Diffstat (limited to 'synapse/module_api')
-rw-r--r-- | synapse/module_api/__init__.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py |