Commit 370dd7e2 by Rocky Duan

return commentable id

parent c03b27bc
......@@ -55,6 +55,7 @@ class Comment < Content
.merge("depth" => depth)
.merge("closed" => comment_thread.closed)
.merge("thread_id" => comment_thread.id)
.merge("commentable_id" => comment_thread.commentable_id)
.merge("votes" => votes.slice(*%w[count up_count down_count point]))
.merge("type" => "comment")
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment