change json contract
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
json.extract! post, :id, :content, :created_at, :updated_at
|
||||
json.extract! post, :id, :content, :created_at
|
||||
|
||||
json.quoted_post(post.quoted_post, partial: 'posts/post', as: :post) if post.quoted_post
|
||||
json.user(post.user, partial: 'users/user', as: :user) if post.user
|
||||
json.quoted_post(post.quoted_post, partial: 'posts/quoted_post', as: :post) if post.quoted_post
|
||||
json.user(post.user, partial: 'posts/user', as: :user)
|
||||
|
||||
json.url post_url(post, format: :json)
|
||||
Reference in New Issue
Block a user