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(@)