Fixed REST API - allow sorting of profile posts comments

kylerc

Well-known member
Affected version
2.2.3
It looks like the rest API returns comments on a profile post in newest-first ordering without a parameter to change the ordering according to the documentation at https://xenforo.com/community/pages/api-endpoints/#route_get_profile_posts_id_comments. Would it be possible to allow specifying a sort order on this endpoint? For my use case, I actually prefer newest first, but this doesn't match how the rendered profile posts appear on the web and causes pagination issues trying to match that interface.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.4).

Change log:
Allow 'sort' to be passed to profile-posts/{id}/comments in order to get posts in asc/desc date order
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom