From fc4a68932c8627167289a9bed8b05d9979c424e5 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 27 Mar 2020 15:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99?= 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 d0fe8fbf8..d4957f23d 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.notes) + json.content content_safe(@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 a9e153c68..e023c25b7 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() \ No newline at end of file +json.content content_safe(@message.notes) \ No newline at end of file