docbrown/app/views/comments/_comment.json.jbuilder
Mac Siri 9ebd742712
[deploy] Reintroduce sticky_nav changes (ab81f36 & 7f92855) (#10263)
* Revert "[deploy] Revert removal of unneeded eager load (if needed) (#10179)"

This reverts commit 11c7b148da.

* Revert "[deploy] Revert "Migrate ProfileImage to Images::Profile (#10055)" (#10149)"

This reverts commit 5657067e55.
2020-09-09 15:33:13 -04:00

18 lines
645 B
Ruby

json.status "created"
json.css @comment.custom_css
json.depth @comment.depth
json.url @comment.path
json.readable_publish_date @comment.readable_publish_date
json.published_timestamp @comment.decorate.published_timestamp
json.body_html @comment.processed_html
json.id @comment.id
json.id_code @comment.id_code_generated
json.newly_created true
json.user do
json.id current_user.id
json.username current_user.username
json.name current_user.name
json.profile_pic Images::Profile.call(current_user.profile_image_url, length: 50)
json.twitter_username current_user.twitter_username
json.github_username current_user.github_username
end