diff options
author | Erik Johnston <erik@matrix.org> | 2018-09-06 14:08:33 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-09-06 14:08:33 +0100 |
commit | d64b24dfe6e792bb3031888f886ee871e4f41064 (patch) | |
tree | 4ad3fecdec4e1dfd21baa7b3bec698ec43c317ea /synapse/federation/persistence.py | |
parent | Merge pull request #3802 from matrix-org/jcgruenhage/docker-unignore-synctl (diff) | |
parent | prepare v0.33.3.1 (diff) | |
download | synapse-d64b24dfe6e792bb3031888f886ee871e4f41064.tar.xz |
Merge tag 'v0.33.3.1' into release-v0.33.4
Synapse 0.33.3.1 (2018-09-06) ============================= SECURITY FIXES -------------- - Fix an issue where event signatures were not always correctly validated ([\#3796](https://github.com/matrix-org/synapse/issues/3796)) - Fix an issue where server_acls could be circumvented for incoming events ([\#3796](https://github.com/matrix-org/synapse/issues/3796)) Internal Changes ---------------- - Unignore synctl in .dockerignore to fix docker builds ([\#3802](https://github.com/matrix-org/synapse/issues/3802))
Diffstat (limited to 'synapse/federation/persistence.py')
-rw-r--r-- | synapse/federation/persistence.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/federation/persistence.py b/synapse/federation/persistence.py index 9146215c21..74ffd13b4f 100644 --- a/synapse/federation/persistence.py +++ b/synapse/federation/persistence.py @@ -36,7 +36,7 @@ class TransactionActions(object): self.store = datastore @log_function - def have_responded(self, transaction): + def have_responded(self, origin, transaction): """ Have we already responded to a transaction with the same id and origin? @@ -50,11 +50,11 @@ class TransactionActions(object): "transaction_id") return self.store.get_received_txn_response( - transaction.transaction_id, transaction.origin + transaction.transaction_id, origin ) @log_function - def set_response(self, transaction, code, response): + def set_response(self, origin, transaction, code, response): """ Persist how we responded to a transaction. Returns: @@ -66,7 +66,7 @@ class TransactionActions(object): return self.store.set_received_txn_response( transaction.transaction_id, - transaction.origin, + origin, code, response, ) |