Let participants edit their open answer while voting is open
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:
1 parent
e6f52a0449
commit
51d1be8695
7 files changed
+135
-48
No files matched your search
+1
-1
@@ -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']);
|
||||
|
||||
Reference in new issue
Block a user