From: marcin mikołajczak Date: Sun, 12 Dec 2021 16:43:18 +0000 (+0100) Subject: Add link headers in ChatController.index2 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=dff435488d02a7d3aba09dca778a97e395f4e210;p=akkoma Add link headers in ChatController.index2 Signed-off-by: marcin mikołajczak --- diff --git a/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex b/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex index dcd54b1af..669d50132 100644 --- a/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/chat_controller.ex @@ -151,7 +151,9 @@ defmodule Pleroma.Web.PleromaAPI.ChatController do index_query(user, params) |> Pagination.fetch_paginated(params) - render(conn, "index.json", chats: chats) + conn + |> add_link_headers(chats) + |> render("index.json", chats: chats) end defp index_query(%{id: user_id} = user, params) do