From 9642aa64d97963ce0f76c53a72a3538caeed51b8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 15 Feb 2024 21:01:40 +0200 Subject: [PATCH] increase description_html max length --- files/routes/groups.py | 2 +- migrations/20240215-add-description-html-for-groups.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/groups.py b/files/routes/groups.py index a46b71040..a6c3afa7f 100644 --- a/files/routes/groups.py +++ b/files/routes/groups.py @@ -357,7 +357,7 @@ def group_change_description(v, group_name): abort(400, "New description is too long (max 100 characters)") description_html = filter_emojis_only(description) - if len(description_html) > 500: + if len(description_html) > 1000: abort(400, "Rendered description is too long!") else: description = None diff --git a/migrations/20240215-add-description-html-for-groups.sql b/migrations/20240215-add-description-html-for-groups.sql index 6fefb3e1f..d2e3def68 100644 --- a/migrations/20240215-add-description-html-for-groups.sql +++ b/migrations/20240215-add-description-html-for-groups.sql @@ -1,2 +1,2 @@ -alter table groups add column description_html varchar(500); +alter table groups add column description_html varchar(1000); update groups set description_html=description;