diff options
author | David Robertson <davidr@element.io> | 2022-05-17 13:49:19 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-05-17 13:55:58 +0100 |
commit | a9fe3350f8a8b10f1d3464844c67a2a1fe3121f6 (patch) | |
tree | 7d1832c23cd9b320e6715cca7badc0465c12df3d | |
parent | discard strings with nulls before user dir update (diff) | |
download | synapse-a9fe3350f8a8b10f1d3464844c67a2a1fe3121f6.tar.xz |
Drive-by typo fix I spotted while debugging
-rw-r--r-- | synapse/rest/client/room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index 4b8bfbffcb..5a2361a2e6 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -109,10 +109,10 @@ class RoomStateEventRestServlet(TransactionRestServlet): self.auth = hs.get_auth() def register(self, http_server: HttpServer) -> None: - # /room/$roomid/state/$eventtype + # /rooms/$roomid/state/$eventtype no_state_key = "/rooms/(?P<room_id>[^/]*)/state/(?P<event_type>[^/]*)$" - # /room/$roomid/state/$eventtype/$statekey + # /rooms/$roomid/state/$eventtype/$statekey state_key = ( "/rooms/(?P<room_id>[^/]*)/state/" "(?P<event_type>[^/]*)/(?P<state_key>[^/]*)$" |