Use a flag rather than a new route for the public policy

This also means that the template now has optional parameters, which will need to be documented somehow.
This commit is contained in:
Travis Ralston 2018-10-03 17:50:11 -06:00
parent f9d34a763c
commit 537d0b7b36
3 changed files with 25 additions and 17 deletions

View file

@ -471,7 +471,7 @@ class AuthHandler(BaseHandler):
"policies": [{
"name": "Privacy Policy",
"version": self.hs.config.user_consent_version,
"url": "%s/_matrix/consent/public" % (self.hs.config.public_baseurl,),
"url": "%s/_matrix/consent?public=true" % (self.hs.config.public_baseurl,),
}],
}