Add changelog entry

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk 2026-01-07 15:34:31 +01:00 committed by Henry Jameson
commit 520bac27dc
3 changed files with 4 additions and 3 deletions

View file

@ -0,0 +1 @@
Paginate follow requests

View file

@ -17,7 +17,7 @@ defmodule Pleroma.Web.ApiSpec.PleromaFollowRequestOperation do
tags: ["Follow requests"],
summary: "Retrieve outgoing follow requests",
security: [%{"oAuth" => ["read:follows", "follow"]}],
operationId: "PleromaFollowRequestController.outgoing",,
operationId: "PleromaFollowRequestController.outgoing",
parameters: pagination_params(),
responses: %{
200 =>

View file

@ -21,11 +21,11 @@ defmodule Pleroma.Web.PleromaAPI.FollowRequestController do
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.PleromaFollowRequestOperation
@doc "GET /api/v1/pleroma/outgoing_follow_requests"
def outgoing(%{assigns: %{user: follower}} = conn, _params) do
def outgoing(%{assigns: %{user: follower}} = conn, params) do
follow_requests =
follower
|> User.get_outgoing_follow_requests_query()
|> Pagination.fetch_paginated(params, :keyset, :follower)
|> Pagination.fetch_paginated(params, :keyset, :following)
conn
|> put_view(Pleroma.Web.MastodonAPI.FollowRequestView)