summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDavid Teller <d.o.teller+github@gmail.com>2021-01-28 16:53:40 +0100
committerDavid Teller <d.o.teller+github@gmail.com>2021-01-28 16:53:40 +0100
commit31d072aea0a37ad5408995359b89080b5280f57d (patch)
treeede3166f04485be727f3657fa70b90b48a4c7038 /synapse/rest
parentFIXUP: Making get_event_context a bit more paranoid (diff)
downloadsynapse-31d072aea0a37ad5408995359b89080b5280f57d.tar.xz
FIXUP: linter
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/admin/rooms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/rest/admin/rooms.py b/synapse/rest/admin/rooms.py
index 641e325581..c673ff07e7 100644
--- a/synapse/rest/admin/rooms.py
+++ b/synapse/rest/admin/rooms.py
@@ -15,9 +15,11 @@
 import logging
 from http import HTTPStatus
 from typing import TYPE_CHECKING, List, Optional, Tuple
+from urllib import parse as urlparse
 
 from synapse.api.constants import EventTypes, JoinRules, Membership
 from synapse.api.errors import AuthError, Codes, NotFoundError, SynapseError
+from synapse.api.filtering import Filter
 from synapse.http.servlet import (
     RestServlet,
     assert_params_in_dict,
@@ -33,6 +35,7 @@ from synapse.rest.admin._base import (
 )
 from synapse.storage.databases.main.room import RoomSortOrder
 from synapse.types import JsonDict, RoomAlias, RoomID, UserID, create_requester
+from synapse.util import json_decoder
 
 if TYPE_CHECKING:
     from synapse.server import HomeServer
@@ -567,6 +570,7 @@ class ForwardExtremitiesRestServlet(RestServlet):
         extremities = await self.store.get_forward_extremities_for_room(room_id)
         return 200, {"count": len(extremities), "results": extremities}
 
+
 class RoomEventContextServlet(RestServlet):
     """
     Provide the context for an event.
@@ -574,6 +578,7 @@ class RoomEventContextServlet(RestServlet):
     an abuse report and understand what happened during and immediately prior
     to this event.
     """
+
     PATTERNS = admin_patterns("/rooms/(?P<room_id>[^/]*)/context/(?P<event_id>[^/]*)$")
 
     def __init__(self, hs):