mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Add '/event_auth/' federation api
This commit is contained in:
parent
d2fb2b8095
commit
02c3b1c9e2
4 changed files with 55 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue