dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit debb06adedc09a028638f797bddd6d9a6d9cd752
parent 60dca108abb94e239389c8574975ca5f84b9e4fa
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri,  2 Dec 2022 21:29:09 -0500

typo

Diffstat:
Mpkg/web/handlers/handlers.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -2585,7 +2585,7 @@ func SettingsChatSnippetsHandler(c echo.Context) error { data.Error = "name must be 1-20 characters" return c.Render(http.StatusOK, "settings.chat-snippets", data) } - if !govalidator.StringLength(data.Name, "1", "255") { + if !govalidator.StringLength(data.Text, "1", "255") { data.Error = "text must be 1-255 characters" return c.Render(http.StatusOK, "settings.chat-snippets", data) }