From 5f555849e59133b4e5dd9d7b174830bc678feea4 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 27 Nov 2017 08:08:19 +0000 Subject: [PATCH] =?UTF-8?q?Replace=20`render=20nothing:=20true`=20with=20a?= =?UTF-8?q?=20JSON=20response.=20This=20has=20the=20added=20benefit=20of?= =?UTF-8?q?=20showing=20a=20=E2=80=9Cloading=E2=80=9D=20message=20(#12)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit render:nothing was producing an error 500 for some reason --- lib/discourse_chat/provider/slack/slack_command_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_chat/provider/slack/slack_command_controller.rb b/lib/discourse_chat/provider/slack/slack_command_controller.rb index b0357c9..f36defd 100644 --- a/lib/discourse_chat/provider/slack/slack_command_controller.rb +++ b/lib/discourse_chat/provider/slack/slack_command_controller.rb @@ -98,7 +98,7 @@ module DiscourseChat::Provider::SlackProvider json = JSON.parse(params[:payload], symbolize_names: true) process_interactive(json) - render nothing: true, status: 200 + render json: { text: I18n.t("chat_integration.provider.slack.transcript.loading") } end def process_interactive(json)