Pagination per_page is hardcoded
rwestergren opened this issue · 2 comments
rwestergren commented
getTotalPosts() / 10
should be updated. Either per_page
should be used, or just the total_pages
, since the calculation is already done server-side.
LalitMaganti commented
I don't have the total number of post pages - it is not returned by the server. per_page and total_pages are returned for the threads feed but I can't get per_page and total_pages until I actually get the post feed.
rwestergren commented
I see. The per_page
property is for threads though, so I'll have to return the posts per_page
property for posts somehow. I'll get back to you on that.