Skip to content

Do not add the "next" key to likes.json if there is no more items

It fixes two issues:

  1. Do not add the "next" key when it does not make sense: https://patch.cx/objects/dbdbc507-52c8-490d-9b7c-1e1d52e5c132/likes?page=1
  2. Fix crash when the page number exceeds the total pages: https://patch.cx/objects/dbdbc507-52c8-490d-9b7c-1e1d52e5c132/likes?page=2

Merge request reports