diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-06-19 16:14:06 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-06-19 16:14:06 +0300 |
commit | 5237a2df9f123f661de30a53193b7d9fec69ecae (patch) | |
tree | 03d3907dc0f7144539f4b5d1c7b8bfd1047110c4 /test/web/mastodon_api/controllers/status_controller_test.exs | |
parent | d772361e6209e6b5733e9fe52b3671cd222060b3 (diff) | |
download | pleroma-5237a2df9f123f661de30a53193b7d9fec69ecae.tar.gz pleroma-5237a2df9f123f661de30a53193b7d9fec69ecae.zip |
[#1873] Fixes missing :offset pagination param support. Added pagination support for hashtags search.
Diffstat (limited to 'test/web/mastodon_api/controllers/status_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/status_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/controllers/status_controller_test.exs b/test/web/mastodon_api/controllers/status_controller_test.exs index 648e6f2ce..a98e939e8 100644 --- a/test/web/mastodon_api/controllers/status_controller_test.exs +++ b/test/web/mastodon_api/controllers/status_controller_test.exs @@ -1561,7 +1561,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest 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 |