Skip to content

Commit

Permalink
warning: увеличил лимит на текст
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Nov 7, 2024
1 parent 5e9d010 commit e539a2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/ru/org/linux/warning/WarningController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class WarningController(warningService: WarningService, topicDao: TopicDao, comm
errors.reject(null, "Сообщение не может быть пустым")
}

if (request.text !=null && request.text.length > 140) {
errors.reject(null, "Сообщение не может быть более 140 символов")
if (request.text !=null && request.text.length > 256) { // sync with post-warning.jsp
errors.reject(null, "Сообщение не может быть более 256 символов")
}

if (errors.hasErrors) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/post-warning.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</label>

<div class="controls">
<form:textarea id="reason-input" path="text" maxlength="140" required="required" style="width: 40em"/>
<form:textarea id="reason-input" path="text" maxlength="256" required="required" style="width: 40em"/>
</div>
</div>

Expand Down

0 comments on commit e539a2c

Please sign in to comment.