summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-01-20 17:38:09 +0000
committerGitHub <noreply@github.com>2020-01-20 17:38:09 +0000
commit74b74462f1c8b2db9b0995cbf64d879cbfce0dc4 (patch)
tree84a49a49831b4b80ff6a5d50e70901cff21eaa46 /synapse
parentFixup synapse.api to pass mypy (#6733) (diff)
downloadsynapse-74b74462f1c8b2db9b0995cbf64d879cbfce0dc4.tar.xz
Fix `/events/:event_id` deprecated API. (#6731)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v1/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/events.py b/synapse/rest/client/v1/events.py
index 4beb617733..25effd0261 100644
--- a/synapse/rest/client/v1/events.py
+++ b/synapse/rest/client/v1/events.py
@@ -70,7 +70,6 @@ class EventStreamRestServlet(RestServlet):
         return 200, {}
 
 
-# TODO: Unit test gets, with and without auth, with different kinds of events.
 class EventRestServlet(RestServlet):
     PATTERNS = client_patterns("/events/(?P<event_id>[^/]*)$", v1=True)
 
@@ -78,6 +77,7 @@ class EventRestServlet(RestServlet):
         super(EventRestServlet, self).__init__()
         self.clock = hs.get_clock()
         self.event_handler = hs.get_event_handler()
+        self.auth = hs.get_auth()
         self._event_serializer = hs.get_event_client_serializer()
 
     async def on_GET(self, request, event_id):