mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 06:54:54 -04:00
Fix /room/.../event/...
to return the *original* event after any edits (#12476)
This is what the MSC (now) requires. Fixes https://github.com/matrix-org/synapse/issues/10310.
This commit is contained in:
parent
798deb3a10
commit
b80bb7e452
4 changed files with 79 additions and 39 deletions
|
@ -669,8 +669,10 @@ class RoomEventServlet(RestServlet):
|
|||
)
|
||||
|
||||
time_now = self.clock.time_msec()
|
||||
# per MSC2676, /rooms/{roomId}/event/{eventId}, should return the
|
||||
# *original* event, rather than the edited version
|
||||
event_dict = self._event_serializer.serialize_event(
|
||||
event, time_now, bundle_aggregations=aggregations
|
||||
event, time_now, bundle_aggregations=aggregations, apply_edits=False
|
||||
)
|
||||
return 200, event_dict
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue