From 2347e3c36206e4a2f75be28b14870082d891a05f Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 31 Jul 2019 14:26:16 +0100 Subject: [PATCH] Hide event existence --- synapse/rest/client/v1/room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index 5efed57439..4c0d0f0ec1 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -576,7 +576,7 @@ class RoomEventServlet(RestServlet): # This endpoint is supposed to return a 404 when the requester does # not have permission to access the event # https://matrix.org/docs/spec/client_server/r0.5.0#get-matrix-client-r0-rooms-roomid-event-eventid - return (404, e.msg) + return (404, "Event not found.") time_now = self.clock.time_msec() if event: