From 819aa227e9e6faa78b079e01c1ec0e22b194af79 Mon Sep 17 00:00:00 2001 From: John Kristensen Date: Thu, 16 Jan 2020 13:38:47 +1100 Subject: [PATCH] Increase allowable length of Matrix room alias The existing 40 character limit prevents using the integration will Matrix servers that might have a fairly lengthy hostname (ie. 'matrix.internal.example.com' would only allow 12 characters for the room name or ID, and room IDs are 19 characters long). Increasing the `max_length` to `100` is still fairly arbitrary but it does match up with the `max_length` of the `name` field of the `Channel` model and should cover most instances. --- hc/front/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hc/front/forms.py b/hc/front/forms.py index e640dbad..f8c15c2b 100644 --- a/hc/front/forms.py +++ b/hc/front/forms.py @@ -173,7 +173,7 @@ class ChannelNameForm(forms.Form): class AddMatrixForm(forms.Form): error_css_class = "has-error" - alias = forms.CharField(max_length=40) + alias = forms.CharField(max_length=100) def clean_alias(self): v = self.cleaned_data["alias"]