diff options
author | Sadposter <hannah+pleroma@coffee-and-dreams.uk> | 2019-01-12 14:03:35 +0000 |
---|---|---|
committer | Sadposter <hannah+pleroma@coffee-and-dreams.uk> | 2019-01-12 14:03:35 +0000 |
commit | 144b48da95867b33315c6a0e6e865c457d89452b (patch) | |
tree | bd11958e56b6f74edb5e49a010b09c0c66892b3a /lib | |
parent | 19b6a8239387869c69c6885044ee488d097b723f (diff) | |
download | pleroma-144b48da95867b33315c6a0e6e865c457d89452b.tar.gz |
Add link headers to MastoAPI /favourites
As documented at https://docs.joinmastodon.org/api/rest/favourites/
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index e00a3fb87..b83539bad 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -836,6 +836,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do |> Enum.reverse() conn + |> add_link_headers(:favourites, activities) |> put_view(StatusView) |> render("index.json", %{activities: activities, for: user, as: :activity}) end |