Mercurial Hosting > lang
diff src/new_chat.red.luan @ 23:0c17c233c45a
start courses
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 30 Jul 2025 23:29:33 -0600 |
parents | 820136c5ee33 |
children | 87fe70201aa8 |
line wrap: on
line diff
--- a/src/new_chat.red.luan Wed Jul 30 19:51:49 2025 -0600 +++ b/src/new_chat.red.luan Wed Jul 30 23:29:33 2025 -0600 @@ -8,10 +8,11 @@ return function() local user = current_user() or error() + local language = Http.request.parameters.language or error() local chat = Chat.new{ user_id = user.id name = "whatever" - language = "jp" + language = language } chat.save() Http.response.send_redirect("chat.html?chat="..chat.id)