summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-07 15:35:53 +0000
committerErik Johnston <erik@matrix.org>2014-11-07 15:35:53 +0000
commit02c3b1c9e2afa27753e9ce898e5455b6489541b4 (patch)
tree48bda5021f9fce4d52aa0b70fe47ee6a1bc2be56 /synapse/handlers
parentImplement invite part of invite join dance (diff)
downloadsynapse-02c3b1c9e2afa27753e9ce898e5455b6489541b4.tar.xz
Add '/event_auth/' federation api
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/federation.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index e6afd95a58..ce65bbcd62 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -224,6 +224,11 @@ class FederationHandler(BaseHandler):
 
         defer.returnValue(self.pdu_codec.event_from_pdu(pdu))
 
+    @defer.inlineCallbacks
+    def on_event_auth(self, event_id):
+        auth = yield self.store.get_auth_chain(event_id)
+        defer.returnValue([self.pdu_codec.pdu_from_event(e) for e in auth])
+
     @log_function
     @defer.inlineCallbacks
     def do_invite_join(self, target_host, room_id, joinee, content, snapshot):