fix the fucking list timelines on mastofe/soapbox-fe
authormarcin mikołajczak <me@mkljczk.pl>
Fri, 2 Jul 2021 13:03:41 +0000 (13:03 +0000)
committermarcin mikołajczak <me@mkljczk.pl>
Fri, 2 Jul 2021 13:03:41 +0000 (13:03 +0000)
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,