aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-01 10:06:26 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-01 10:06:26 +0200
commitcf4fdda3523015248b3ff1f3e928ce9e69cc5a12 (patch)
tree8697e66b346e04802cb376e63398b7192ccf073d /packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
parentb3c031881b38b4c95e2945c05537b6a681a096d9 (diff)
downloadmeshbay-cf4fdda3523015248b3ff1f3e928ce9e69cc5a12.tar.gz
fix(hub): a group name fits its column and carries no control characters
Over 128 characters was a 500 on PostgreSQL; line breaks, C0/C1 controls and bidi overrides are refused (joiners stay, for emoji). The creation form caps the field at 128 (F-13, what remains of it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js b/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
index bdb3dbc..ec4a5b6 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/create-group-page.js
@@ -77,7 +77,7 @@ function CreateGroupFormSimple({ token, onCreated, allowPublicGroups = true }) {
<div class="form-field">
<label class="form-label">${t('create_group.name')}</label>
<input type="text" placeholder="${t('create_group.name_placeholder')}"
- value=${name} onInput=${e => setName(e.target.value)} required autofocus />
+ value=${name} onInput=${e => setName(e.target.value)} required autofocus maxlength="128" />
</div>
<div class="form-field" style="margin-bottom:0">
@@ -374,7 +374,7 @@ function CreateGroupWizard({ token, username, onCreated, onNodeLinked, allowPubl
<div class="form-field">
<label class="form-label">${t('create_group.name')}</label>
<input type="text" placeholder="${t('create_group.name_placeholder')}"
- value=${name} onInput=${e => setName(e.target.value)} required autofocus />
+ value=${name} onInput=${e => setName(e.target.value)} required autofocus maxlength="128" />
</div>
<div class="form-field">