mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Log if we try to do attestations for our own user and group
This commit is contained in:
parent
585972b51a
commit
d8dde19f04
@ -130,10 +130,16 @@ 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.is_mine_id(group_id):
|
if not self.is_mine_id(group_id):
|
||||||
|
destination = get_domain_from_id(group_id)
|
||||||
|
else not self.is_mine_id(user_id):
|
||||||
destination = get_domain_from_id(user_id)
|
destination = get_domain_from_id(user_id)
|
||||||
else:
|
else:
|
||||||
destination = get_domain_from_id(group_id)
|
logger.warn(
|
||||||
|
"Incorrectly trying to do attestations for user: %r in %r",
|
||||||
|
user_id, group_id,
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
yield self.transport_client.renew_group_attestation(
|
yield self.transport_client.renew_group_attestation(
|
||||||
destination, group_id, user_id,
|
destination, group_id, user_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user