Preserve parameters in link headers (Mastodon API)
This commit is contained in:
parent
0fe715f3ba
commit
7342b5a45f
2 changed files with 37 additions and 0 deletions
|
|
@ -190,6 +190,11 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
|||
end
|
||||
|
||||
defp add_link_headers(conn, method, activities, param \\ nil, params \\ %{}) do
|
||||
params =
|
||||
conn.params
|
||||
|> Map.drop(["since_id", "max_id"])
|
||||
|> Map.merge(params)
|
||||
|
||||
last = List.last(activities)
|
||||
first = List.first(activities)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue