Add link headers to MastoAPI /favourites

As documented at https://docs.joinmastodon.org/api/rest/favourites/
This commit is contained in:
Sadposter 2019-01-12 14:03:35 +00:00
parent 19b6a82393
commit 144b48da95

View file

@ -836,6 +836,7 @@ def favourites(%{assigns: %{user: user}} = conn, _) do
|> Enum.reverse()
conn
|> add_link_headers(:favourites, activities)
|> put_view(StatusView)
|> render("index.json", %{activities: activities, for: user, as: :activity})
end