Merge branch 'mkljczk-develop-patch-60115' into 'develop'
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Thu, 22 Jul 2021 18:41:11 +0000 (18:41 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Thu, 22 Jul 2021 18:41:11 +0000 (18:41 +0000)
MastodonAPI: Fix list timelines

Closes mastofe#89 and #2693

See merge request pleroma/pleroma!3477

lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex

index 4b49b74ca4b4393cf9680644989fadfd072071d8..10c27989338af0dd3a6e2d5e3e5ac8d8fe373407 100644 (file)
@@ -193,7 +193,9 @@ defmodule Pleroma.Web.MastodonAPI.TimelineController 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,