diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-05-23 15:24:31 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-05-23 15:24:31 +0100 |
commit | 82191b08f6a45c693551983a48b49a9fc30184c4 (patch) | |
tree | 90967eeb42637ea8c525ca2ca5c12b0168a3c3ea /synapse/handlers | |
parent | style (diff) | |
download | synapse-82191b08f6a45c693551983a48b49a9fc30184c4.tar.xz |
Support for putting %(consent_uri)s in messages
Make it possible to put the URI in the error message and the server notice that get sent by the server
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/message.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index c3adbc6c95..0886607023 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -575,8 +575,11 @@ class EventCreationHandler(object): return consent_uri = self._consent_uri_builder.build_user_consent_uri(user_id) + msg = self.config.block_events_without_consent_error % { + 'consent_uri': consent_uri, + } raise ConsentNotGivenError( - msg=self.config.block_events_without_consent_error, + msg=msg, consent_uri=consent_uri, ) |