diff options
author | Erik Johnston <erik@matrix.org> | 2014-11-07 15:35:53 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-11-07 15:35:53 +0000 |
commit | 02c3b1c9e2afa27753e9ce898e5455b6489541b4 (patch) | |
tree | 48bda5021f9fce4d52aa0b70fe47ee6a1bc2be56 /synapse/handlers/federation.py | |
parent | Implement invite part of invite join dance (diff) | |
download | synapse-02c3b1c9e2afa27753e9ce898e5455b6489541b4.tar.xz |
Add '/event_auth/' federation api
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r-- | synapse/handlers/federation.py | 5 |
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): |