ChatMessages: Fix pagination headers.

They used to contain the path parameter `id` as query param,
which would break the link.
This commit is contained in:
lain 2021-01-11 15:30:40 +01:00
commit e1a547d7d3
2 changed files with 5 additions and 5 deletions

View file

@ -67,7 +67,7 @@ defmodule Pleroma.Web.ControllerHelper do
defp build_pagination_fields(conn, min_id, max_id, extra_params) do
params =
conn.params
|> Map.drop(Map.keys(conn.path_params))
|> Map.drop(Map.keys(conn.path_params) |> Enum.map(&String.to_atom/1))
|> Map.merge(extra_params)
|> Map.drop(@id_keys)