diff --git a/files/routes/subs.py b/files/routes/subs.py index 3b15cf527..3c7c93f8f 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -336,9 +336,9 @@ def post_sub_sidebar(v, sub): if not v.mods(sub.name): abort(403) - sub.sidebar = request.values.get('sidebar', '').strip()[:500] + sub.sidebar = request.values.get('sidebar', '').strip()[:10000] sub.sidebar_html = sanitize(sub.sidebar) - if len(sub.sidebar_html) > 1000: return "Sidebar is too big!" + if len(sub.sidebar_html) > 20000: return "Sidebar is too big!" g.db.add(sub) diff --git a/files/templates/sub/settings.html b/files/templates/sub/settings.html index 296bfc2d1..f0f591cc1 100644 --- a/files/templates/sub/settings.html +++ b/files/templates/sub/settings.html @@ -111,7 +111,7 @@