|
|
@ -15,7 +15,7 @@ json.admin @user.admin? || @user.business?
|
|
|
|
json.children do
|
|
|
|
json.children do
|
|
|
|
json.array! memo.children_of_reply do |child|
|
|
|
|
json.array! memo.children_of_reply do |child|
|
|
|
|
json.id child.id
|
|
|
|
json.id child.id
|
|
|
|
json.content child.content
|
|
|
|
json.content content_safe(child.content)
|
|
|
|
json.time time_from_now(child.created_at)
|
|
|
|
json.time time_from_now(child.created_at)
|
|
|
|
json.image_url url_to_avatar(child.author)
|
|
|
|
json.image_url url_to_avatar(child.author)
|
|
|
|
json.username child.author.full_name
|
|
|
|
json.username child.author.full_name
|
|
|
|