aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-01-12 14:03:35 +0000
committerSadposter <hannah+pleroma@coffee-and-dreams.uk>2019-01-12 14:03:35 +0000
commit144b48da95867b33315c6a0e6e865c457d89452b (patch)
treebd11958e56b6f74edb5e49a010b09c0c66892b3a
parent19b6a8239387869c69c6885044ee488d097b723f (diff)
downloadpleroma-144b48da95867b33315c6a0e6e865c457d89452b.tar.gz
Add link headers to MastoAPI /favourites
As documented at https://docs.joinmastodon.org/api/rest/favourites/
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex1
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