From e1467ac36413d0f2b26f657a2a9ce41dec043964 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Tue, 1 May 2018 17:23:41 -0700 Subject: [PATCH] finish doing what the last commit started --- applications/api.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/api.moon b/applications/api.moon index 9752783..2fc8593 100644 --- a/applications/api.moon +++ b/applications/api.moon @@ -59,7 +59,7 @@ class API extends Application switch @params.action when "new" unless @params.content or tonumber @params.id - @params.content = @params.id + @params.content = unescape(@params.id) assert_valid @params, { {"content", exists: true, min_length: 1, "Task content not specified."} } @task = assert_model Tasks\create user_id: @user.id, content: @params.content send_task(@)