Skip to content

Commit

Permalink
feat: increase allowed size in content
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed May 6, 2024
1 parent e8f35e0 commit d4ebf70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/webmentions.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *Server) commentsPost(w http.ResponseWriter, r *http.Request) {
website = sanitize.Sanitize(website)
content = sanitize.Sanitize(content)

if len(content) == 0 || len(content) > 500 || len(name) > 100 || len(website) > 100 {
if len(content) == 0 || len(content) > 1000 || len(name) > 200 || len(website) > 200 {
s.serveErrorHTML(w, r, http.StatusBadRequest, errors.New("content, name, or website outside of limits"))
return
}
Expand Down

0 comments on commit d4ebf70

Please sign in to comment.