Pagination issue on Community pages
If community has more pinned posts than limit
in request params, then start_author
and start_permlink
pagination is not working. I suspect it is about pinned posts, example of community to test https://ecency.com/trending/hive-179017, try this with limit: 5 and paginate request by setting last item start_author and start_permlink, it will return same list again, because as @asgarth mentioned in MM, pinned posts are returned in every consequent calls, so pagination just loops, doesn't go forward.
first query:
{"id": 0, "jsonrpc": "2.0", "method": "bridge.get_ranked_posts", "params": {"limit": 5, "sort": "trending", "tag":"hive-179017"}}
next query: (this should be correct pagination data at this moment):
{"id": 0, "jsonrpc": "2.0", "method": "bridge.get_ranked_posts", "params": {"limit": 5, "sort": "trending", "tag":"hive-179017", "start_author": "pixresteemer", "start_permlink": "the-re-hive-contest-results-week-48-and-start-week-49"}}
Probably this is the part that should be checked: https://gitlab.syncad.com/hive/hivemind/-/blob/master/hive/server/bridge_api/methods.py#L122