mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 16:02:15 +01:00
Use the localpart in the consent uri
... because it's shorter.
This commit is contained in:
parent
9e8ab0a4f4
commit
3ff6f50eac
1 changed files with 3 additions and 1 deletions
|
@ -574,7 +574,9 @@ class EventCreationHandler(object):
|
||||||
if u["consent_version"] == self.config.user_consent_version:
|
if u["consent_version"] == self.config.user_consent_version:
|
||||||
return
|
return
|
||||||
|
|
||||||
consent_uri = self._consent_uri_builder.build_user_consent_uri(user_id)
|
consent_uri = self._consent_uri_builder.build_user_consent_uri(
|
||||||
|
requester.user.localpart,
|
||||||
|
)
|
||||||
raise ConsentNotGivenError(
|
raise ConsentNotGivenError(
|
||||||
msg=self.config.block_events_without_consent_error,
|
msg=self.config.block_events_without_consent_error,
|
||||||
consent_uri=consent_uri,
|
consent_uri=consent_uri,
|
||||||
|
|
Loading…
Reference in a new issue