make sure comments are sorted in ascending order from oldest to newest in the SPV
This commit is contained in:
parent
1b7bc02eee
commit
75d3b1598f
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class PostInteractionPresenter
|
||||||
{
|
{
|
||||||
:likes => as_api(@post.likes),
|
:likes => as_api(@post.likes),
|
||||||
:reshares => PostPresenter.collection_json(@post.reshares, @current_user),
|
:reshares => PostPresenter.collection_json(@post.reshares, @current_user),
|
||||||
:comments => CommentPresenter.as_collection(@post.comments),
|
:comments => CommentPresenter.as_collection(@post.comments.order('created_at ASC')),
|
||||||
:participations => as_api(@post.participations)
|
:participations => as_api(@post.participations)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue