From 8c058f3f47e251d37bfed8488099fa9147cab305 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 27 Mar 2020 15:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/messages/reply.json.jbuilder | 2 +- app/views/users/reply_message.json.jbuilder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/messages/reply.json.jbuilder b/app/views/messages/reply.json.jbuilder index 474242854..cc00f70e7 100644 --- a/app/views/messages/reply.json.jbuilder +++ b/app/views/messages/reply.json.jbuilder @@ -1,7 +1,7 @@ json.partial! "commons/success" json.data do json.id @reply.id - json.content content_safe(@reply.message_detail&.content) + json.content content_safe(params[:content]) json.author do json.partial! "users/user_simple", user: @reply.author end diff --git a/app/views/users/reply_message.json.jbuilder b/app/views/users/reply_message.json.jbuilder index 1fdc3c84b..785b7334c 100644 --- a/app/views/users/reply_message.json.jbuilder +++ b/app/views/users/reply_message.json.jbuilder @@ -1,4 +1,4 @@ json.status 0 json.message "success" json.id @message.id -json.content content_safe(@message.message_detail&.content) \ No newline at end of file +json.content content_safe(params[:content]) \ No newline at end of file