1
0
Fork 0
mirror of https://git.pleroma.social/pleroma/pleroma.git synced 2026-02-15 17:16:57 +00:00

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
parent 7b134e7aa5
commit b2469404a9
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"], tags: ["Follow requests"],
summary: "Retrieve outgoing follow requests", summary: "Retrieve outgoing follow requests",
security: [%{"oAuth" => ["read:follows", "follow"]}], security: [%{"oAuth" => ["read:follows", "follow"]}],
operationId: "PleromaFollowRequestController.outgoing",, operationId: "PleromaFollowRequestController.outgoing",
parameters: pagination_params(), parameters: pagination_params(),
responses: %{ responses: %{
200 => 200 =>

View file

@ -21,11 +21,11 @@ defmodule Pleroma.Web.PleromaAPI.FollowRequestController do
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.PleromaFollowRequestOperation defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.PleromaFollowRequestOperation
@doc "GET /api/v1/pleroma/outgoing_follow_requests" @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 = follow_requests =
follower follower
|> User.get_outgoing_follow_requests_query() |> User.get_outgoing_follow_requests_query()
|> Pagination.fetch_paginated(params, :keyset, :follower) |> Pagination.fetch_paginated(params, :keyset, :following)
conn conn
|> put_view(Pleroma.Web.MastodonAPI.FollowRequestView) |> put_view(Pleroma.Web.MastodonAPI.FollowRequestView)