1
0
Fork 0
forked from mirrors/akkoma

Allow max_id to be at the end of the querystring

This commit is contained in:
FloatingGhost 2023-08-06 16:44:25 +01:00
parent 7956cfb091
commit 650c0c0f62

View file

@ -1883,7 +1883,7 @@ test "favorites paginate correctly" do
# Using the header for pagination works correctly
[next, _] = get_resp_header(result, "link") |> hd() |> String.split(", ")
[_, max_id] = Regex.run(~r/max_id=([^&]+)/, next)
[_, max_id] = Regex.run(~r/max_id=([^&>]+)/, next)
assert max_id == third_favorite.id