mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 05:49:54 +01:00
Merge branch 'link-headers-chats' into 'develop'
Add link headers in ChatController.index2 See merge request pleroma/pleroma!3562
This commit is contained in:
commit
d1510c98d7
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue