# frozen_string_literal: true

json.id post.id
json.content post.content
json.background_color post.background_color
# if post.image?
#   json.image do
#     json.small_url post.image_url(:small)
#     json.medium_url post.image_url(:medium)
#     json.original_url post.image_url
#   end
# end
# json.liked post.liked_by?(current_user)
json.comments_count post.comments_count
json.likes_count post.likes_count
json.user post.user
json.created_at post.created_at
json.updated_at post.updated_at
