回复问题

dev_sync_trustie
daiao 5 years ago
parent 413ade904c
commit ff3aac49d1

@ -2,7 +2,7 @@ json.author do
json.partial! 'users/user', user: discuss.user
end
json.id discuss.id
json.content discuss.content
json.content content_safe(discuss.content)
json.time time_from_now(discuss.created_at)
json.position discuss.position
json.shixun_id discuss.dis_id

@ -1 +1 @@
json.content content
json.content content_safe(content)

@ -1,6 +1,6 @@
json.partial! "messages/message_simple", message: message
json.partial! "commons/like", message: message
json.content message.message_detail.try(:content)
json.content content_safe(message.message_detail.try(:content))
json.author do
json.partial! "users/user_simple", user: message.author
end
Loading…
Cancel
Save