Commit 144b48da authored by Sadposter's avatar Sadposter

Add link headers to MastoAPI /favourites

As documented at https://docs.joinmastodon.org/api/rest/favourites/
parent 19b6a823
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment