Let participants edit their open answer while voting is open
CI / Deploy / test (push) Successful in 1m4s
CI / Deploy / deploy (push) Skipped

Generalises the comment edit to /p/{code}/edit: open answers can be
corrected (not emptied), scale comments as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-11 11:59:54 +01:00
1 parent e6f52a0449
commit 51d1be8695
7 files changed
+135 -48

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ return function (RouteBuilder $routes): void {
->setPatterns(['code' => '[A-Za-z0-9-]{4,16}'])
->setPass(['code'])
->setMethods(['POST']);
$builder->connect('/p/{code}/comment', 'Participate::comment', ['_name' => 'participate:comment'])
$builder->connect('/p/{code}/edit', 'Participate::edit', ['_name' => 'participate:edit'])
->setPatterns(['code' => '[A-Za-z0-9-]{4,16}'])
->setPass(['code'])
->setMethods(['POST']);