Add Link header to list timelines

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2021-07-02 13:03:41 +00:00 committed by marcin mikołajczak
parent c972c7a6be
commit baf28515d7

View file

@ -203,7 +203,9 @@ def list(%{assigns: %{user: user}} = conn, %{list_id: id} = params) do
|> ActivityPub.fetch_activities_bounded(following, params)
|> Enum.reverse()
render(conn, "index.json",
conn
|> add_link_headers(activities)
|> render("index.json",
activities: activities,
for: user,
as: :activity,