Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lichess-org/lila
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 21, 2024
2 parents 0c4724c + 6f91774 commit f154ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/forum/src/main/ForumForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ final private[forum] class ForumForm(
single("reason" -> optional(nonEmptyText))

private def userTextMapping(inOwnTeam: Boolean, previousText: Option[String] = None)(using me: Me) =
cleanText(minLength = 3)
cleanText(minLength = 3, 10_000)
.verifying(
"You have reached the daily maximum for links in forum posts.",
t => inOwnTeam || promotion.test(me, t, previousText)
)

val diagnostic = Form(single("text" -> nonEmptyText(maxLength = 100000)))
val diagnostic = Form(single("text" -> nonEmptyText(maxLength = 100_000)))

object ForumForm:

Expand Down

0 comments on commit f154ca6

Please sign in to comment.