diff options
author | Erik Johnston <erik@matrix.org> | 2016-05-04 15:19:12 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-05-04 15:19:12 +0100 |
commit | 8e6a163f2762b3f62ae9b350c5050bc2318ec268 (patch) | |
tree | aa7bc8a71f2ed9795bc65ce57d048a4ccc0be051 /synapse/rest/client | |
parent | Move event_id to path (diff) | |
download | synapse-8e6a163f2762b3f62ae9b350c5050bc2318ec268.tar.xz |
Add timestamp and auto incrementing ID
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/v2_alpha/report_event.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/report_event.py b/synapse/rest/client/v2_alpha/report_event.py index 9c1c9662c9..8903e12405 100644 --- a/synapse/rest/client/v2_alpha/report_event.py +++ b/synapse/rest/client/v2_alpha/report_event.py @@ -33,6 +33,7 @@ class ReportEventRestServlet(RestServlet): super(ReportEventRestServlet, self).__init__() self.hs = hs self.auth = hs.get_auth() + self.clock = hs.get_clock() self.store = hs.get_datastore() @defer.inlineCallbacks @@ -48,6 +49,7 @@ class ReportEventRestServlet(RestServlet): user_id=user_id, reason=body.get("reason"), content=body, + received_ts=self.clock.time_msec(), ) defer.returnValue((200, {})) |