summary refs log tree commit diff
path: root/synapse/storage/databases
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2023-03-21 13:24:03 +0000
committerGitHub <noreply@github.com>2023-03-21 13:24:03 +0000
commitec9224bf9a7bebb6c429ef45e0d1a293f0986836 (patch)
treed140e37a1f09dabca17f85377639cacfeae326e2 /synapse/storage/databases
parentMake `EventHandler.get_event` return `None` when the requested event is not f... (diff)
downloadsynapse-ec9224bf9a7bebb6c429ef45e0d1a293f0986836.tar.xz
Make `POST /_matrix/client/v3/rooms/{roomId}/report/{eventId}` endpoint return 404 if event exists, but the user lacks access (#15300)
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r--synapse/storage/databases/main/events_worker.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py
index 20b7a68362..0cf46626d2 100644
--- a/synapse/storage/databases/main/events_worker.py
+++ b/synapse/storage/databases/main/events_worker.py
@@ -805,7 +805,6 @@ class EventsWorkerStore(SQLBaseStore):
                 # the events have been redacted, and if so pulling the redaction event
                 # out of the database to check it.
                 #
-                missing_events = {}
                 try:
                     # Try to fetch from any external cache. We already checked the
                     # in-memory cache above.