OdyseeTeam / commentron

MIT License
11 stars 12 forks source link

pagination + filtering bug #108

Open tzarebczan opened 2 years ago

tzarebczan commented 2 years ago

If lots of comments are filtered, they are no longer returned on page 1.

Example:


  "headers": {
    "accept": "*/*",
    "accept-language": "en-US,en;q=0.9,pl-PL;q=0.8,pl;q=0.7",
    "content-type": "application/json",
    "sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"102\", \"Google Chrome\";v=\"102\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "cross-site"
  },
  "referrer": "https://odysee.com/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"comment.List\",\"params\":{\"page\":1,\"claim_id\":\"f8b96ac0bec7d125af78830f7fedd49ec63ec27b\",\"page_size\":10,\"top_level\":true,\"channel_id\":\"4ecc029cac207edb5bb7770947ebb9e84f7ebab9\",\"channel_name\":\"@miss-zi-zi\",\"sort_by\":3}}",
  "method": "POST",
  "mode": "cors",
  "credentials": "omit"
});```