summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-05-04 15:19:12 +0100
committerErik Johnston <erik@matrix.org>2016-05-04 15:19:12 +0100
commit8e6a163f2762b3f62ae9b350c5050bc2318ec268 (patch)
treeaa7bc8a71f2ed9795bc65ce57d048a4ccc0be051 /synapse/rest/client
parentMove event_id to path (diff)
downloadsynapse-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.py2
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, {}))