Skip to content
Snippets Groups Projects
Commit 9ab859f2 authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix typo in group attestation handling

parent f4f65ef9
No related branches found
No related tags found
No related merge requests found
...@@ -835,7 +835,7 @@ class FederationGroupsRenewAttestaionServlet(BaseFederationServlet): ...@@ -835,7 +835,7 @@ class FederationGroupsRenewAttestaionServlet(BaseFederationServlet):
def on_POST(self, origin, content, query, group_id, user_id): def on_POST(self, origin, content, query, group_id, user_id):
# We don't need to check auth here as we check the attestation signatures # We don't need to check auth here as we check the attestation signatures
new_content = yield self.handler.on_renew_group_attestation( new_content = yield self.handler.on_renew_attestation(
origin, content, group_id, user_id origin, content, group_id, user_id
) )
......
...@@ -90,6 +90,7 @@ class GroupAttestionRenewer(object): ...@@ -90,6 +90,7 @@ class GroupAttestionRenewer(object):
self.assestations = hs.get_groups_attestation_signing() self.assestations = hs.get_groups_attestation_signing()
self.transport_client = hs.get_federation_transport_client() self.transport_client = hs.get_federation_transport_client()
self.is_mine_id = hs.is_mine_id self.is_mine_id = hs.is_mine_id
self.attestations = hs.get_groups_attestation_signing()
self._renew_attestations_loop = self.clock.looping_call( self._renew_attestations_loop = self.clock.looping_call(
self._renew_attestations, 30 * 60 * 1000, self._renew_attestations, 30 * 60 * 1000,
...@@ -129,7 +130,7 @@ class GroupAttestionRenewer(object): ...@@ -129,7 +130,7 @@ class GroupAttestionRenewer(object):
def _renew_attestation(group_id, user_id): def _renew_attestation(group_id, user_id):
attestation = self.attestations.create_attestation(group_id, user_id) attestation = self.attestations.create_attestation(group_id, user_id)
if self.hs.is_mine_id(group_id): if self.is_mine_id(group_id):
destination = get_domain_from_id(user_id) destination = get_domain_from_id(user_id)
else: else:
destination = get_domain_from_id(group_id) destination = get_domain_from_id(group_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment