Story: export comment_count and score to json
This commit is contained in:
parent
a4e5684994
commit
cb5e1592b0
|
@ -114,8 +114,10 @@ class Story < ActiveRecord::Base
|
|||
:url,
|
||||
:comments_url,
|
||||
])
|
||||
h[:submitter_user] = user
|
||||
h[:score] = score
|
||||
h[:comment_count] = comment_count
|
||||
h[:description] = markeddown_description
|
||||
h[:submitter_user] = user
|
||||
h
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue